Skip to content

Commit 6de9b96

Browse files
committed
Fix nightly mismatched_lifetime_syntaxes warnings in BoxIter.
1 parent 13b8873 commit 6de9b96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mp4parse/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,11 +2140,11 @@ pub struct BoxIter<'a, T: 'a> {
21402140
}
21412141

21422142
impl<T: Read> BoxIter<'_, T> {
2143-
pub fn new(src: &mut T) -> BoxIter<T> {
2143+
pub fn new(src: &mut T) -> BoxIter<'_, T> {
21442144
BoxIter { src }
21452145
}
21462146

2147-
pub fn next_box(&mut self) -> Result<Option<BMFFBox<T>>> {
2147+
pub fn next_box(&mut self) -> Result<Option<BMFFBox<'_, T>>> {
21482148
let r = read_box_header(self.src);
21492149
match r {
21502150
Ok(h) => Ok(Some(BMFFBox {
@@ -2184,7 +2184,7 @@ impl<'a, T: Read> BMFFBox<'a, T> {
21842184
&self.head
21852185
}
21862186

2187-
fn box_iter(&mut self) -> BoxIter<BMFFBox<'a, T>> {
2187+
fn box_iter(&mut self) -> BoxIter<'_, BMFFBox<'a, T>> {
21882188
BoxIter::new(self)
21892189
}
21902190
}

0 commit comments

Comments
 (0)