Errorneous suggestion with map + Arc::clone of custom expression #12560
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
Clippy didn't recognize that
.cloned()
method will have behaviour different from existingmap + Arc::clone
. It seems that it interpretedArc::clone(&t.track)
asArc::clone(t)
.Lint Name
clippy::map_clone
Reproducer
I tried to run Clippy on webrtc-rs repository. It created a false positive result (full log).
Version
Additional Labels
@rustbot label +l-suggestion-causes-error
The text was updated successfully, but these errors were encountered: