We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e58c04 commit eea3b1dCopy full SHA for eea3b1d
clippy_lints/src/borrow_deref_ref.rs
@@ -63,6 +63,7 @@ impl LateLintPass<'_> for BorrowDerefRef {
63
then{
64
65
if let Some(parent_expr) = get_parent_expr(cx, e){
66
+ // modification to `&mut &*x` is different from `&mut x`
67
if matches!(deref_target.kind, ExprKind::Path(..)
68
| ExprKind::Field(..)
69
| ExprKind::Index(..)
0 commit comments