Skip to content

Commit f84cc2c

Browse files
authored
Merge pull request #2683 from rust-lang-nursery/rustup
Rustup
2 parents 0c665f4 + f786a36 commit f84cc2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/loops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ fn is_ref_iterable_type(cx: &LateContext, e: &Expr) -> bool {
17981798
fn is_iterable_array(ty: Ty) -> bool {
17991799
// IntoIterator is currently only implemented for array sizes <= 32 in rustc
18001800
match ty.sty {
1801-
ty::TyArray(_, n) => (0..=32).contains(n.val.to_raw_bits().expect("array length")),
1801+
ty::TyArray(_, n) => (0..=32).contains(&n.val.to_raw_bits().expect("array length")),
18021802
_ => false,
18031803
}
18041804
}

0 commit comments

Comments
 (0)