.clone().takes_self_ref()
isn't caught by clippy::redundant_clone
#9455
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
Code of the form
.clone().method()
, wheremethod
takes&self
, has a redundant clone. Clippy should catch thisLint Name
redundant_clone
Reproducer
I tried this code:
I expected to see this happen: a warning that the
.clone()
call is redundantInstead, this happened: no such warning
Version
The text was updated successfully, but these errors were encountered: