Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d88ad9e

Browse files
committed
By tracking import use types to check whether it is scope uses or the other situations like module-relative uses, we can do more accurate redundant import checking.
fixes rust-lang#117448 For example unnecessary imports in std::prelude that can be eliminated: ```rust use std::option::Option::Some;//~ WARNING the item `Some` is imported redundantly use std::option::Option::None; //~ WARNING the item `None` is imported redundantly ```
1 parent 1ac4d93 commit d88ad9e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/driver.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ use std::fs::read_to_string;
2828
use std::ops::Deref;
2929
use std::path::Path;
3030
use std::process::exit;
31-
use std::string::ToString;
3231

3332
use anstream::println;
3433

0 commit comments

Comments
 (0)