Use slice::iter instead of into_iter to avoid future breakage#208
Use slice::iter instead of into_iter to avoid future breakage#208martin-fink wants to merge 2 commits intoAtheMathmo:masterfrom
slice::iter instead of into_iter to avoid future breakage#208Conversation
`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.
|
i think the |
|
You are right, thanks! |
|
I'm afraid I've been away from the rust ecosystem to understand this issue without digging deeper. Should this PR be closed following @tafia 's comment? |
|
Hi there! This PR is indeed not necessary. The code changed in this PR does not lead to breakage as
@AtheMathmo In short: close this PR, but merge this one. Also: please consider Rust Bus to aid with maintaining your two crates. They do maintaining for you and will find a new maintainer. |
Use
slice::iterinstead ofinto_iterto avoid future breakagean_array.into_iter()currently just works because of the autoreffeature, which then calls
<[T] as IntoIterator>::into_iter. Butin the future, arrays will implement
IntoIterator, too. In orderto avoid problems in the future, the call is replaced by
iter()which is shorter and more explicit.
A crater run showed that your crate is affected by a potential future
change. See rust-lang/rust#65819 for more information.