-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
clippy::wildcard_imports
(#692)
cc @Xanewok for context: #680 (comment) This works well on `use foo::*` and allows automatic fixing/replacing. But it doesn't work on `pub use foo::*`. I looked into doing that manually, but realized that for public re-exports, it is actually much more work to do/maintain than the readability benefits it offers, especially when items have different visibility, and there are generated items. Taking `non_terminals/mod.rs`, I think the below list is a lot of noise, and requires manual work every time we add/remove something. I suggest allowing `pub use foo::*` for these reasons, and use it as appropriate. ```rust pub use enum_::{EnumItem, EnumVariant}; pub use field::{Field, FieldDelimiters, FieldKind, FieldsErrorRecovery}; pub use precedence::{PrecedenceExpression, PrecedenceItem, PrecedenceOperator, PrimaryExpression}; pub use repeated::RepeatedItem; pub use separated::SeparatedItem; pub use struct_::StructItem; pub(crate) use enum_::{SpannedEnumItem, SpannedEnumVariant}; pub(crate) use field::{ SpannedField, SpannedFieldDelimiters, SpannedFieldKind, SpannedFieldsErrorRecovery, }; pub(crate) use precedence::{ SpannedPrecedenceExpression, SpannedPrecedenceItem, SpannedPrecedenceOperator, SpannedPrimaryExpression, }; pub(crate) use repeated::SpannedRepeatedItem; pub(crate) use separated::SpannedSeparatedItem; pub(crate) use struct_::SpannedStructItem; ```
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.