Skip to content

Commit eeea704

Browse files
committed
Entries::new make const
1 parent f0131cc commit eeea704

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/src/archive/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ pub struct Entries<'r, R> {
334334

335335
impl<'r, R> Entries<'r, R> {
336336
#[inline]
337-
pub(crate) fn new(reader: &'r mut Archive<R>) -> Self {
337+
pub(crate) const fn new(reader: &'r mut Archive<R>) -> Self {
338338
Self { reader }
339339
}
340340

lib/src/archive/read/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub struct Entries<'a, 'r> {
209209

210210
impl<'a, 'r> Entries<'a, 'r> {
211211
#[inline]
212-
pub(crate) fn new(reader: &'a mut Archive<&'r [u8]>) -> Self {
212+
pub(crate) const fn new(reader: &'a mut Archive<&'r [u8]>) -> Self {
213213
Self { reader }
214214
}
215215

0 commit comments

Comments
 (0)