Skip to content

Commit 7605bac

Browse files
committed
resolve CI
1 parent 0a30fdc commit 7605bac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/methods/option_map_or_none.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ pub(super) fn check<'tcx>(
7272

7373
if is_option {
7474
let self_snippet = snippet(cx, recv.span, "..");
75-
if let hir::ExprKind::Closure(_, _, id, span, _) = map_arg.kind {
75+
if_chain! {
76+
if let hir::ExprKind::Closure(_, _, id, span, _) = map_arg.kind;
7677
let arg_snippet = snippet(cx, span, "..");
7778
let body = cx.tcx.hir().body(id);
78-
if_chain! {
7979
if let Some((func, arg_char)) = reduce_unit_expression(cx, &body.value);
8080
if arg_char.len() == 1;
8181
if let hir::ExprKind::Path(ref qpath) = func.kind;
@@ -95,7 +95,7 @@ pub(super) fn check<'tcx>(
9595
Applicability::MachineApplicable,
9696
);
9797
}
98-
}
98+
9999
}
100100

101101
let func_snippet = snippet(cx, map_arg.span, "..");

0 commit comments

Comments
 (0)