Skip to content

chore(lint): enable clippy::enum_glob_use#178

Open
tupe12334 wants to merge 1 commit into
mainfrom
fix/issue-165-enum-glob-use-lint
Open

chore(lint): enable clippy::enum_glob_use#178
tupe12334 wants to merge 1 commit into
mainfrom
fix/issue-165-enum-glob-use-lint

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Summary

  • Adds enum_glob_use = "deny" to core/Cargo.toml's [lints.clippy] table, matching the crate's existing incremental lint-ratchet convention (it already denies the closely-related wildcard_imports).
  • Zero violations in the tree today — this is a clean regression guard against future use MyEnum::*; glob imports, which can shadow/clash variant names and obscure where a bare variant name comes from at the use site.

Test plan

  • cargo clippy --all-targets — clean, no new warnings
  • cargo test — 15 tests pass

Closes #165


This pull request was opened by the Open issues → fix PRs (owned repos + my orgs) routine of moadim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable clippy::enum_glob_use lint

1 participant