Skip to content

Commit a4d49fe

Browse files
committed
clean
1 parent cceaae6 commit a4d49fe

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

clippy_lints/src/borrow_deref_ref.rs

-7
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,6 @@ impl LateLintPass<'_> for BorrowDerefRef {
7171
then{
7272

7373
if let Some(parent_expr) = get_parent_expr(cx, e){
74-
75-
// let map = cx.tcx.hir();
76-
// let span = map.span(parent_expr.hir_id);
77-
// if span.from_expansion() {
78-
// return;
79-
// }
80-
8174
if matches!(deref_target.kind, ExprKind::Path(..) | ExprKind::Field(..)) {
8275
if matches!(parent_expr.kind, ExprKind::AddrOf(_, Mutability::Mut, _)) {
8376
return;

0 commit comments

Comments
 (0)