Skip to content

Commit c6f33df

Browse files
committed
Fix clippy::collapsible-match warning.
1 parent c3e34a5 commit c6f33df

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mp4parse/src/tests.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ where
5151
};
5252
section = func(section);
5353
match size {
54-
BoxSize::Short(size) => {
55-
if size > 0 {
56-
assert_eq!(u64::from(size), section.size())
57-
}
54+
BoxSize::Short(size) if size > 0 => {
55+
assert_eq!(u64::from(size), section.size())
5856
}
5957
BoxSize::Long(size) => assert_eq!(size, section.size()),
6058
BoxSize::Auto => {

0 commit comments

Comments
 (0)