We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f4e8c commit a13f43aCopy full SHA for a13f43a
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