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 584f95f commit 6e8c2bfCopy full SHA for 6e8c2bf
clippy_lints/src/methods/mod.rs
@@ -958,11 +958,11 @@ declare_clippy_lint! {
958
/// ```
959
///
960
/// ```rust
961
- /// let _ = (0..4).filter_map(i32::checked_abs);
+ /// let _ = (0..4).filter_map(|x| Some(x + 1));
962
963
/// As there is no conditional check on the argument this could be written as:
964
965
- /// let _ = (0..4).map(i32::checked_abs);
+ /// let _ = (0..4).map(|x| x + 1);
966
967
pub UNNECESSARY_FILTER_MAP,
968
complexity,
0 commit comments