Skip to content

Commit 3372515

Browse files
committed
add comment
1 parent fefd5e7 commit 3372515

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/borrow_deref_ref.rs

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ impl LateLintPass<'_> for BorrowDerefRef {
6363
then{
6464

6565
if let Some(parent_expr) = get_parent_expr(cx, e){
66+
// modification to `&mut &*x` is different from `&mut x`
6667
if matches!(deref_target.kind, ExprKind::Path(..)
6768
| ExprKind::Field(..)
6869
| ExprKind::Index(..)

0 commit comments

Comments
 (0)