Skip to content

Commit 6842f8e

Browse files
committed
Replace casts with Into conversions
1 parent c5b6226 commit 6842f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mp4parse/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ fn read_iref<T: Read>(src: &mut BMFFBox<T>) -> Result<TryVec<SingleItemTypeRefer
15351535
let reference_count = be_u16(&mut b)?;
15361536
for _ in 0..reference_count {
15371537
let to_item_id = if version == 0 {
1538-
be_u16(&mut b)? as u32
1538+
be_u16(&mut b)?.into()
15391539
} else {
15401540
be_u32(&mut b)?
15411541
};
@@ -1642,7 +1642,7 @@ fn read_ipma<T: Read>(
16421642
let entry_count = be_u32(src)?;
16431643
for _ in 0..entry_count {
16441644
let item_id = if version == 0 {
1645-
be_u16(src)? as u32
1645+
be_u16(src)?.into()
16461646
} else {
16471647
be_u32(src)?
16481648
};

0 commit comments

Comments
 (0)