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
{{ message }}
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
The strategy is to suggest replacing the unused import with an empty string. If it is the only item in the use (i.e., std::fs in use std::fs; is unused, in contrast to File in use std::fs::{File, copy} is unused), remove the whole use statement.
This suggestion needs to be implemented in rustc, probably here.
I couldn't find an open issue there, you should open one! Feel free to copy this comment too if you like :) (Maybe mention rust-lang/rust#42823 as it tracks a few diagnostic things already.)
Edit: Damn you @oli-obk I'm writing a long comment here and you just waltz in and say the same thing! Again! :P
I really like
rustfix
and expectations are more :)cargo build
identifies unused imports. I would like to seerustfix
provides similar suggestion and remove these unused imports.e.g.
The text was updated successfully, but these errors were encountered: