Skip to content

Commit b138649

Browse files
authored
Merge pull request #301 from mozilla/clippy-cmp-owned-impl_bounded_product
Fix clippy::cmp-owned on impl_bounded_product
2 parents 4b95042 + f37a16b commit b138649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mp4parse/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,7 @@ macro_rules! impl_bounded_product {
20262026

20272027
impl $name {
20282028
pub fn new(value: $inner) -> Self {
2029-
assert!(<$inner>::from(value) <= Self::MAX);
2029+
assert!(value <= Self::MAX);
20302030
Self(value)
20312031
}
20322032

0 commit comments

Comments
 (0)