-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
L-styleLint: Belongs in the style lint groupLint: Belongs in the style lint groupT-ASTType: Requires working with the ASTType: Requires working with the ASTgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
Clippy already wans when importing all the variants of an enum. But this is still allowed:
use crate::*;
This kind of global import makes the code more difficult to read since we don't know where symbols come from. It may also confuse IDEs. Could we add a lint to prevent this?
Link to the relevant reddit discussion
ozkriff, ppannuto and jly36963
Metadata
Metadata
Assignees
Labels
L-styleLint: Belongs in the style lint groupLint: Belongs in the style lint groupT-ASTType: Requires working with the ASTType: Requires working with the ASTgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy