Closed
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.