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
rustc correctly highlights unused imports, but doesn't provide an action to remove them. Providing the removal via the lint allows fix buttons in IDEs to handle unused imports and further more automatic behaviour working towards rust-lang/rls#742.
Can unused import suggested removal be added?
use std::{f64, u64, u8 asFoo};pubfnmain(){let _s = u64::MAX;}
warning: unused imports: `f64`, `u8 as Foo`
--> src/main.rs:4:11
|
4 | use std::{f64, u64, u8 as Foo};
| ^^^ ^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
rustc correctly highlights unused imports, but doesn't provide an action to remove them. Providing the removal via the lint allows fix buttons in IDEs to handle unused imports and further more automatic behaviour working towards rust-lang/rls#742.
Can unused import suggested removal be added?
The text was updated successfully, but these errors were encountered: