[−][src]Static rustc_lint::unused::UNUSED_IMPORT_BRACES
pub(in unused) static UNUSED_IMPORT_BRACES: &Lint
The unused_import_braces lint catches unnecessary braces around an
imported item.
Example
ⓘThis example deliberately fails to compile
#![deny(unused_import_braces)] use test::{A}; pub mod test { pub struct A; }
{{produces}}
Explanation
If there is only a single item, then remove the braces (use test::A;
for example).
This lint is "allow" by default because it is only enforcing a stylistic choice.