Skip to content

Commit 8f233dd

Browse files
committed
Fix clippy::unnecessary-map-or.
1 parent 82ffc8a commit 8f233dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mp4parse/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4734,7 +4734,7 @@ fn read_ctts<T: Read>(src: &mut BMFFBox<T>) -> Result<CompositionOffsetBox> {
47344734

47354735
if counts
47364736
.checked_mul(8)
4737-
.map_or(true, |bytes| u64::from(bytes) > src.bytes_left())
4737+
.is_none_or(|bytes| u64::from(bytes) > src.bytes_left())
47384738
{
47394739
return Status::CttsBadSize.into();
47404740
}

0 commit comments

Comments
 (0)