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
There are zillions of ways to clone a string: a.clone(), a.to_owned(), a.to_string(), Clone::clone(&a), String::clone(&a), etc. I want to be able to write a lint to enforce some particular style for my project
The text was updated successfully, but these errors were encountered:
Thank you for the issue, this will definitely be possible. I think this should/could even be a Clippy lint, with a config value. It's similar to how stings can also be created in far too many ways :)
Lint explanation
There are zillions of ways to clone a string:
a.clone()
,a.to_owned()
,a.to_string()
,Clone::clone(&a)
,String::clone(&a)
, etc. I want to be able to write a lint to enforce some particular style for my projectThe text was updated successfully, but these errors were encountered: