cmp_owned false positives - proc_macro Ident #4874
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Hi,
I noticed a false positive when comparing a string with
ident.to_string()
clippy suggests you don't need to add
to_string()
and you can instead dereference the ident.PartialEq
implementation between&str
/String
andIdent
.Example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b6ae15acb40aee8fe582f1620ac569d7
The text was updated successfully, but these errors were encountered: