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.
2 parents a86463c + 6e8c2bf commit b4ad56eCopy full SHA for b4ad56e
clippy_lints/src/methods/mod.rs
@@ -977,11 +977,11 @@ declare_clippy_lint! {
977
/// ```
978
///
979
/// ```rust
980
- /// let _ = (0..4).filter_map(i32::checked_abs);
+ /// let _ = (0..4).filter_map(|x| Some(x + 1));
981
982
/// As there is no conditional check on the argument this could be written as:
983
984
- /// let _ = (0..4).map(i32::checked_abs);
+ /// let _ = (0..4).map(|x| x + 1);
985
986
pub UNNECESSARY_FILTER_MAP,
987
complexity,
0 commit comments