rust-clippy
rust-clippy copied to clipboard
Fix false positive of `borrow_deref_ref`
If a reborrow is itself borrowed mutably, do not propose to replace it by the original reference.
Fixes: rust-lang/rust-clippy#14934
changelog: [borrow_deref_ref]: do not propose replacing a reborrow by the original reference if the reborrow is itself mutably borrowed
r? @y21
rustbot has assigned @y21. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r? to explicitly pick a reviewer