Skip to content

Commit 3bb6862

Browse files
Use slice::iter instead of into_iter to avoid future breakage
`an_array.into_iter()` currently just works because of the autoref feature, which then calls `<[T] as IntoIterator>::into_iter`. But in the future, arrays will implement `IntoIterator`, too. In order to avoid problems in the future, the call is replaced by `iter()` which is shorter and more explicit.
1 parent 19b57ec commit 3bb6862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn main() {
99
let force_spin_cfg = is_var_set("CARGO_CFG_LAZY_STATIC_SPIN_IMPL");
1010

1111
let impls_forced = [force_heap_cfg, force_inline_cfg, force_spin_cfg]
12-
.into_iter()
12+
.iter()
1313
.filter(|&&f| f)
1414
.count();
1515

0 commit comments

Comments
 (0)