Skip to content

Commit 3955bd4

Browse files
fixed formatting
1 parent 3629372 commit 3955bd4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

clippy_lints/src/methods/iter_on_single_or_empty_collections.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ pub(super) fn check<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>, method
7272
..
7373
},
7474
args,
75-
) => {
76-
cx.typeck_results().qpath_res(path, *hir_id).opt_def_id()
77-
.filter(|fn_id| cx.tcx.def_kind(fn_id).is_fn_like())
78-
.is_some_and(|fn_id| is_arg_ty_unified_in_fn(cx, fn_id, expr.hir_id, args))
79-
}
75+
) => cx
76+
.typeck_results()
77+
.qpath_res(path, *hir_id)
78+
.opt_def_id()
79+
.filter(|fn_id| cx.tcx.def_kind(fn_id).is_fn_like())
80+
.is_some_and(|fn_id| is_arg_ty_unified_in_fn(cx, fn_id, expr.hir_id, args)),
8081
ExprKind::MethodCall(_name, recv, args, _span) => is_arg_ty_unified_in_fn(
8182
cx,
8283
cx.typeck_results().type_dependent_def_id(parent.hir_id).unwrap(),

0 commit comments

Comments
 (0)