Skip to content

Commit 86c6db9

Browse files
committed
format
1 parent da0578a commit 86c6db9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/borrow_deref_ref.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ impl LateLintPass<'_> for BorrowDerefRef {
6969
if matches!(parent_expr.kind, ExprKind::AddrOf(_, Mutability::Mut, _)) {
7070
return;
7171
}
72-
if matches!(parent_expr.kind, ExprKind::Unary(UnOp::Deref, ..)) &&
73-
!is_lint_allowed(cx, DEREF_ADDROF, parent_expr.hir_id) {
72+
if matches!(parent_expr.kind, ExprKind::Unary(UnOp::Deref, ..))
73+
&& !is_lint_allowed(cx, DEREF_ADDROF, parent_expr.hir_id) {
7474
return;
7575
}
7676
}

0 commit comments

Comments
 (0)