Replies: 1 comment 2 replies
-
Couldn't you add some additional checks to clippy instead? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone ever dreamt of all of these idioms being released as a static checker in VS Code, complimentary to rust-analyzer?
It could be like a rust "code stink" indicator, highlighting lines of code that could be unnecessary. After a couple years, maybe most devs would start turning it off, but it would help save ridiculous numbers of hours during that early phase of learning rust.
It could even be sloppily written, generating lots of noise. For instance, highlighting
.clone()
every time, encouraging a borrow orstd::mem::take
or another alternative. This way the extension would be cheap advice to run.Beta Was this translation helpful? Give feedback.
All reactions