@@ -311,7 +311,6 @@ declare_clippy_lint! {
311
311
///
312
312
/// println!("{:?}", correct);
313
313
/// assert_eq!(correct, more_correct);
314
- ///
315
314
declare_clippy_lint ! {
316
315
pub FILTER_MAP_MAP ,
317
316
pedantic,
@@ -337,7 +336,6 @@ declare_clippy_lint! {
337
336
///
338
337
/// println!("{:?}", more_correct);
339
338
/// assert_eq!(correct, more_correct);
340
- ///
341
339
declare_clippy_lint ! {
342
340
pub FILTER_MAP ,
343
341
pedantic,
@@ -1954,12 +1952,12 @@ fn lint_filter_map<'a, 'tcx>(
1954
1952
responses. insert (
1955
1953
"is_some" . to_string ( ) ,
1956
1954
"called `filter(p).map(q)` on an `Iterator<Option<_>>`. \
1957
- Consider calling `.filter_map(..)` instead."
1955
+ Consider calling `.filter_map(..)` instead.",
1958
1956
) ;
1959
1957
responses. insert (
1960
1958
"is_ok" . to_string ( ) ,
1961
1959
"called `filter(p).map(q)` on an `Iterator<Result<_>>`. \
1962
- Consider calling `.filter_map(..)` instead."
1960
+ Consider calling `.filter_map(..)` instead.",
1963
1961
) ;
1964
1962
1965
1963
if_chain ! {
@@ -1996,7 +1994,7 @@ fn lint_filter_map_map<'a, 'tcx>(
1996
1994
// lint if caller of `.filter_map().map()` is an Iterator
1997
1995
if match_trait_method ( cx, expr, & paths:: ITERATOR ) {
1998
1996
let msg = "called `filter_map(p).map(q)` on an `Iterator`. \
1999
- This is more succinctly expressed by only calling `.filter_map(..)` instead.";
1997
+ This is more succinctly expressed by only calling `.filter_map(..)` instead.";
2000
1998
span_lint ( cx, FILTER_MAP_MAP , span, msg) ;
2001
1999
}
2002
2000
}
0 commit comments