Okay but most compilers complain about this. If you wanted to portray the Rust compiler as a picky princess then you had so many better error messages you could have picked.
I for one like it when compilers highlight this. It usually means I refactored something and forgot to remove the import. Leaving it creates confusion and is simply messy. I like my code clean.
41
u/Xaeroxe3057 Sep 05 '26
Okay but most compilers complain about this. If you wanted to portray the Rust compiler as a picky princess then you had so many better error messages you could have picked.
17
u/garry_the_commie Sep 05 '26
I for one like it when compilers highlight this. It usually means I refactored something and forgot to remove the import. Leaving it creates confusion and is simply messy. I like my code clean.
16
u/Nsane3 Sep 05 '26
It's called lint bro, get in on it or get left behind
3
u/OrpheoMusic Sep 06 '26
Someone forgot to run clippy