rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

Fix false positive of `borrow_deref_ref`

Open samueltardieu opened this issue 7 months ago • 1 comments

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

samueltardieu avatar Jun 04 '25 11:06 samueltardieu

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

rustbot avatar Jun 04 '25 11:06 rustbot