Skip to content

Commit 2177f2c

Browse files
formatting
1 parent 4b1ac31 commit 2177f2c

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

clippy_lints/src/methods/iter_filter.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, filter_arg: &hir
5757
if is_iterator
5858
&& parent_is_not_map
5959
&& is_method(cx, filter_arg, sym!(is_some))
60-
&& !span_contains_comment(
61-
cx.sess().source_map(),
62-
filter_span.with_hi(expr.span.hi())
63-
)
60+
&& !span_contains_comment(cx.sess().source_map(), filter_span.with_hi(expr.span.hi()))
6461
{
6562
span_lint_and_sugg(
6663
cx,
@@ -75,10 +72,7 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, filter_arg: &hir
7572
if is_iterator
7673
&& parent_is_not_map
7774
&& is_method(cx, filter_arg, sym!(is_ok))
78-
&& !span_contains_comment(
79-
cx.sess().source_map(),
80-
filter_span.with_hi(expr.span.hi())
81-
)
75+
&& !span_contains_comment(cx.sess().source_map(), filter_span.with_hi(expr.span.hi()))
8276
{
8377
span_lint_and_sugg(
8478
cx,

clippy_lints/src/methods/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4325,7 +4325,6 @@ impl Methods {
43254325
);
43264326
}
43274327
if self.msrv.meets(msrvs::ITER_FLATTEN) {
4328-
43294328
// use the sourcemap to get the span of the closure
43304329
iter_filter::check(cx, expr, arg, span);
43314330
}

0 commit comments

Comments
 (0)