Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyijun committed May 10, 2022
1 parent 99f4e8c commit a13f43a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_lints/src/borrow_deref_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ impl LateLintPass<'_> for BorrowDerefRef {
then{

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

0 comments on commit a13f43a

Please sign in to comment.