You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a false-positive for redundant_clone on this line. Here is a semi-reduced example:
#![allow(unused)]#![warn(clippy::redundant_clone)]#[derive(Clone)]structVersion;structPackageId{inner:&'staticPackageIdInner,}structPackageIdInner{name:&'staticstr,version:Version,}implPackageId{fnfoo(name:&'staticstr,version:Version){}fnbar(self){PackageId::foo(self.inner.name,self.inner.version.clone());// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ redundant clone// Removing clone causes:// ERR: cannot move out of `self.inner.version` which is behind a shared reference}}
Clippy version: clippy 0.0.212 (648e5b9 2019-10-01)
I'm getting a false-positive for
redundant_clone
on this line. Here is a semi-reduced example:Some more examples:
The text was updated successfully, but these errors were encountered: