diff options
| author | Matthias Kaak <m.kaak@protonmail.ch> | 2021-10-05 19:40:15 +0000 |
|---|---|---|
| committer | Matthias Kaak <m.kaak@protonmail.ch> | 2021-10-05 19:40:15 +0000 |
| commit | 320ecb1f0b4e41427ef7af049ce44c815bdd7664 (patch) | |
| tree | 4dd016c54500ac1a01551f3d330d605107d041b7 | |
| parent | 7c82e78f308b35b40f424527b6d7961a81280529 (diff) | |
| download | rust-320ecb1f0b4e41427ef7af049ce44c815bdd7664.tar.gz rust-320ecb1f0b4e41427ef7af049ce44c815bdd7664.zip | |
Mentioned `inspect` in lint description of `suspicious_map`
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 2025056ac94..b26d11c0d6b 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -1284,8 +1284,9 @@ declare_clippy_lint! { /// /// ### Why is this bad? /// It looks suspicious. Maybe `map` was confused with `filter`. - /// If the `map` call is intentional, this should be rewritten. Or, if you intend to - /// drive the iterator to completion, you can just use `for_each` instead. + /// If the `map` call is intentional, this should be rewritten + /// using `inspect`. Or, if you intend to drive the iterator to + /// completion, you can just use `for_each` instead. /// /// ### Example /// ```rust |
