Skip to content

Commit c6be621

Browse files
committed
Fix the now stricter lint in manual_rem_euclid.rs
1 parent 86391ab commit c6be621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/manual_rem_euclid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fn check_for_either_unsigned_int_constant<'a>(
119119
}
120120

121121
fn check_for_unsigned_int_constant<'a>(cx: &'a LateContext<'_>, expr: &'a Expr<'_>) -> Option<u128> {
122-
let Some(int_const) = constant_full_int(cx, cx.typeck_results(), expr) else { return None };
122+
let int_const = constant_full_int(cx, cx.typeck_results(), expr)?;
123123
match int_const {
124124
FullInt::S(s) => s.try_into().ok(),
125125
FullInt::U(u) => Some(u),

0 commit comments

Comments
 (0)