-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-fix
Description
Describe the problem you are trying to solve
It would be great, if cargo fix
could remove unused imports. Import handling is already tedious when using many dependencies without preludes and so it would be great it cargo could automatically remove the superfluous imports.
Describe the solution you'd like
cargo fix
and all warning: unused import:...
messages are gone.
Notes
Unfortunately rustc does not give a hint, how to get rid of the warning. So one could either handle the fix in cargo itself or extend rustc's warning message.
jasonpeacock, wangyujie1207, garrettmaring, sollyucko, tjhu and 13 more
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-fix