We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19dd6d8 commit 3bdbe72Copy full SHA for 3bdbe72
clippy_lints/src/methods/mod.rs
@@ -930,8 +930,8 @@ declare_clippy_lint! {
930
}
931
932
declare_clippy_lint! {
933
- /// **What it does:** Checks for use of `obj.method().for_each(closure)` if obj doesn't
934
- /// implelement `Iterator` and `method()` returns `Impl Iterator` type.
+ /// **What it does:** Checks for use of `.method(..).for_each(closure)` if the reciever of `.method(..)` doesn't
+ /// implement `Iterator` and the return type of `.method(..)` implements `Iterator`.
935
///
936
/// **Why is this bad?** Excessive use of `for_each` reduces redability, using `for` loop is
937
/// clearer and more concise.
0 commit comments