Static rustc_lint::unused::UNUSED_IMPORT_BRACES

source ·
Expand description

The unused_import_braces lint catches unnecessary braces around an imported item.


use test::{A};

pub mod test {
    pub struct A;



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.