Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use slice::iter instead of into_iter to avoid future breakage #378

Merged
merged 1 commit into from Oct 30, 2019
Merged

Use slice::iter instead of into_iter to avoid future breakage #378

merged 1 commit into from Oct 30, 2019

Commits on Oct 30, 2019

  1. 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.
    LukasKalbertodt committed Oct 30, 2019
    Copy the full SHA
    cb3c993 View commit details
    Browse the repository at this point in the history