We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4d49fe commit 01afd37Copy full SHA for 01afd37
clippy_lints/src/borrow_deref_ref.rs
@@ -63,7 +63,6 @@ impl LateLintPass<'_> for BorrowDerefRef {
63
if !deref_target.span.from_expansion();
64
let mut app = Applicability::MachineApplicable;
65
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);
67
if let (_, false) =snippet_with_context(cx, addrof_target.span , e.span.ctxt() , "..", &mut app);
68
if !matches!(deref_target.kind, ExprKind::Unary(UnOp::Deref, ..) );
69
let ref_ty = cx.typeck_results().expr_ty(deref_target);
0 commit comments