Skip to content

Commit

Permalink
Mentioned inspect in lint description of suspicious_map
Browse files Browse the repository at this point in the history
  • Loading branch information
zvavybir committed Oct 5, 2021
1 parent 7c82e78 commit 320ecb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 320ecb1

Please sign in to comment.