Skip to content

Commit 308c930

Browse files
committed
typo
1 parent 3cda54d commit 308c930

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clippy_lints/src/needless_deref.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ impl LateLintPass<'_> for NeedlessDeref {
5050

5151
let map = cx.tcx.hir();
5252
if let Some(parent_hir_id) = map.find_parent_node(e.hir_id){
53-
let span=map.span(parent_hir_id);
53+
let span = map.span(parent_hir_id);
5454
if span.from_expansion() {
5555
return;
5656
}
5757
let parent_node = map.find(parent_hir_id);
5858
if let Some(rustc_hir::Node::Expr(parent_expr)) = parent_node {
59-
if matches!(parent_expr.kind, ExprKind::Unary(UnOp::Deref, ..)) ||
60-
matches!(parent_expr.kind, ExprKind::AddrOf(..) ){
61-
return;
62-
}
59+
if matches!(parent_expr.kind, ExprKind::Unary(UnOp::Deref, ..)) ||
60+
matches!(parent_expr.kind, ExprKind::AddrOf(..) ) {
61+
return;
62+
}
6363
}
6464
}
6565

0 commit comments

Comments
 (0)