Skip to content

Commit 2a19ba8

Browse files
committed
Fix formatting for ref_mut_iter_method_chain
1 parent 453c07b commit 2a19ba8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/methods/ref_mut_iter_method_chain.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ pub(crate) fn check(cx: &LateContext<'_>, self_arg: &Expr<'_>) {
1717
if implements_trait(cx, cx.typeck_results().expr_ty(base_expr).peel_refs(), iter_trait, &[]);
1818
then {
1919
let snip_expr = match base_expr.kind {
20-
ExprKind::Unary(UnOp::Deref, e) if cx.typeck_results().expr_ty(e).is_ref() && !base_expr.span.from_expansion()
20+
ExprKind::Unary(UnOp::Deref, e)
21+
if cx.typeck_results().expr_ty(e).is_ref() && !base_expr.span.from_expansion()
2122
=> e,
2223
_ => base_expr,
2324
};

0 commit comments

Comments
 (0)