Skip to content

Commit 01afd37

Browse files
committed
rm useless compare
1 parent a4d49fe commit 01afd37

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/borrow_deref_ref.rs

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ impl LateLintPass<'_> for BorrowDerefRef {
6363
if !deref_target.span.from_expansion();
6464
let mut app = Applicability::MachineApplicable;
6565
if let (_, false) =snippet_with_context(cx, deref_target.span , e.span.ctxt() , "..", &mut app);
66-
if let (_, false) =snippet_with_context(cx, deref_target.span , addrof_target.span.ctxt() , "..", &mut app);
6766
if let (_, false) =snippet_with_context(cx, addrof_target.span , e.span.ctxt() , "..", &mut app);
6867
if !matches!(deref_target.kind, ExprKind::Unary(UnOp::Deref, ..) );
6968
let ref_ty = cx.typeck_results().expr_ty(deref_target);

0 commit comments

Comments
 (0)