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.
inspect
suspicious_map
1 parent 7c82e78 commit 320ecb1Copy full SHA for 320ecb1
clippy_lints/src/methods/mod.rs
@@ -1284,8 +1284,9 @@ declare_clippy_lint! {
1284
///
1285
/// ### Why is this bad?
1286
/// It looks suspicious. Maybe `map` was confused with `filter`.
1287
- /// If the `map` call is intentional, this should be rewritten. Or, if you intend to
1288
- /// 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
1289
+ /// completion, you can just use `for_each` instead.
1290
1291
/// ### Example
1292
/// ```rust
0 commit comments