#[allow(unused_import)] for exactly all "use super::*"

  1. Most of my crates are small. I like having use super::* at the top of most of my modules.

  2. I know about #[allow(unused_import)] for a single line and #![allow(unused_import)] for entire crate.

  3. My question is: is there a way to sa

for all use super::* , allow unused_import; for other use lines, behave as normal

#[allow(unused_imports)] use super::*; seems to be what you want. Why is that not good enough for you?

I prefer to have lots of short modules, and this involves sprinkling the #[allow(unused_imports)] at the top of nearly every module.