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
The effect of cargo fix is defined by the applicability of the suggestion. I believe that dead_code doesn't actually suggest removing the code. It's mostly a lint to notify the user, in most cases users want to keep the original code. :)
If you really believe this would be a good addition, you should raise this issue in the rust-lang/rust repo. Though, I think the current behavior is intentional and good.
Description
It would be nice if
cargo clippy --fix
could remove the code that it complains about being dead.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: