We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Entries::new
1 parent 850b653 commit ce243b9Copy full SHA for ce243b9
2 files changed
lib/src/archive/read.rs
@@ -338,7 +338,7 @@ pub struct Entries<'r, R> {
338
339
impl<'r, R> Entries<'r, R> {
340
#[inline]
341
- pub(crate) fn new(reader: &'r mut Archive<R>) -> Self {
+ pub(crate) const fn new(reader: &'r mut Archive<R>) -> Self {
342
Self { reader }
343
}
344
lib/src/archive/read/slice.rs
@@ -209,7 +209,7 @@ pub struct Entries<'a, 'r> {
209
210
impl<'a, 'r> Entries<'a, 'r> {
211
212
- pub(crate) fn new(reader: &'a mut Archive<&'r [u8]>) -> Self {
+ pub(crate) const fn new(reader: &'a mut Archive<&'r [u8]>) -> Self {
213
214
215
0 commit comments