Closed
Description
I'm very often seeing people write imports such as this one:
use regex;
Such an import is almost always dead code, because ever since Rust 2018 all external crates are already in scope. In fact pretty much any import that doesn't contain at least one of pub
, as ...
or ::
is very likely dead code. Rust does not currently emit any warning for such an import.