Skip to content

Commit eda304a

Browse files
committed
Obey the dictums of rustfmt
1 parent 6c197cb commit eda304a

File tree

1 file changed

+3
-5
lines changed
  • clippy_lints/src/methods

1 file changed

+3
-5
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ declare_clippy_lint! {
311311
///
312312
/// println!("{:?}", correct);
313313
/// assert_eq!(correct, more_correct);
314-
///
315314
declare_clippy_lint! {
316315
pub FILTER_MAP_MAP,
317316
pedantic,
@@ -337,7 +336,6 @@ declare_clippy_lint! {
337336
///
338337
/// println!("{:?}", more_correct);
339338
/// assert_eq!(correct, more_correct);
340-
///
341339
declare_clippy_lint! {
342340
pub FILTER_MAP,
343341
pedantic,
@@ -1954,12 +1952,12 @@ fn lint_filter_map<'a, 'tcx>(
19541952
responses.insert(
19551953
"is_some".to_string(),
19561954
"called `filter(p).map(q)` on an `Iterator<Option<_>>`. \
1957-
Consider calling `.filter_map(..)` instead."
1955+
Consider calling `.filter_map(..)` instead.",
19581956
);
19591957
responses.insert(
19601958
"is_ok".to_string(),
19611959
"called `filter(p).map(q)` on an `Iterator<Result<_>>`. \
1962-
Consider calling `.filter_map(..)` instead."
1960+
Consider calling `.filter_map(..)` instead.",
19631961
);
19641962

19651963
if_chain! {
@@ -1996,7 +1994,7 @@ fn lint_filter_map_map<'a, 'tcx>(
19961994
// lint if caller of `.filter_map().map()` is an Iterator
19971995
if match_trait_method(cx, expr, &paths::ITERATOR) {
19981996
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.";
20001998
span_lint(cx, FILTER_MAP_MAP, span, msg);
20011999
}
20022000
}

0 commit comments

Comments
 (0)