Skip to content

Commit 96df785

Browse files
committed
Fix clippy::bool-to-int-with-if for nightly clippy.
1 parent 542b408 commit 96df785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mp4parse/src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ fn make_dfla(
643643
) -> Cursor<Vec<u8>> {
644644
assert!(data.len() < 1 << 24);
645645
make_fullbox(BoxSize::Auto, b"dfLa", 0, |s| {
646-
let flag = if last { 1 } else { 0 };
646+
let flag = u32::from(last);
647647
let size = match data_length {
648648
FlacBlockLength::Correct => (data.len() as u32) & 0x00ff_ffff,
649649
FlacBlockLength::Incorrect(size) => {

0 commit comments

Comments
 (0)