We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c665f4 + f786a36 commit f84cc2cCopy full SHA for f84cc2c
clippy_lints/src/loops.rs
@@ -1798,7 +1798,7 @@ fn is_ref_iterable_type(cx: &LateContext, e: &Expr) -> bool {
1798
fn is_iterable_array(ty: Ty) -> bool {
1799
// IntoIterator is currently only implemented for array sizes <= 32 in rustc
1800
match ty.sty {
1801
- ty::TyArray(_, n) => (0..=32).contains(n.val.to_raw_bits().expect("array length")),
+ ty::TyArray(_, n) => (0..=32).contains(&n.val.to_raw_bits().expect("array length")),
1802
_ => false,
1803
}
1804
0 commit comments