mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
Fix the now stricter lint in manual_rem_euclid.rs
This commit is contained in:
parent
86391abc70
commit
c6be62159f
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ fn check_for_either_unsigned_int_constant<'a>(
|
|||
}
|
||||
|
||||
fn check_for_unsigned_int_constant<'a>(cx: &'a LateContext<'_>, expr: &'a Expr<'_>) -> Option<u128> {
|
||||
let Some(int_const) = constant_full_int(cx, cx.typeck_results(), expr) else { return None };
|
||||
let int_const = constant_full_int(cx, cx.typeck_results(), expr)?;
|
||||
match int_const {
|
||||
FullInt::S(s) => s.try_into().ok(),
|
||||
FullInt::U(u) => Some(u),
|
||||
|
|
Loading…
Reference in a new issue