Skip to content

Commit 5563bd6

Browse files
committed
Addressed comments.
1 parent 2b2acf1 commit 5563bd6

File tree

1 file changed

+5
-5
lines changed
  • clippy_lints/src/methods

1 file changed

+5
-5
lines changed

clippy_lints/src/methods/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -749,11 +749,11 @@ declare_clippy_lint! {
749749
/// `iter_mut`.
750750
///
751751
/// **Why is this bad?** Arrays and `PathBuf` do not yet have an `into_iter` method which move out
752-
/// their content into an iterator. Calling `into_iter` instead just forwards to `iter` or
753-
/// `iter_mut` due to auto-referencing, of which only yield references. Furthermore, when the
754-
/// standard library actually [implements the `into_iter` method][25725] which moves the content out
755-
/// of the array, the original use of `into_iter` got inferred with the wrong type and the code will
756-
/// be broken.
752+
/// their content into an iterator. Auto-referencing resolves the `into_iter` call to its reference
753+
/// instead, like `<&[T; N] as IntoIterator>::into_iter`, which just iterates over item references
754+
/// like calling `iter` would. Furthermore, when the standard library actually
755+
/// [implements the `into_iter` method][25725] which moves the content out of the array, the
756+
/// original use of `into_iter` got inferred with the wrong type and the code will be broken.
757757
///
758758
/// **Known problems:** None
759759
///

0 commit comments

Comments
 (0)