Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warn clippy::unused_trait_names #2141

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

bim9262
Copy link
Collaborator

@bim9262 bim9262 commented Feb 19, 2025

Checks for use Trait where the Trait is only used for its methods and not referenced by a path directly.

Traits imported that aren’t used directly can be imported anonymously with use Trait as _. It is more explicit, avoids polluting the current scope with unused names and can be useful to show which imports are required for traits.

Checks for use Trait where the Trait is only used for its methods and not referenced by a path directly.

Traits imported that aren’t used directly can be imported anonymously with use Trait as _. It is more explicit, avoids polluting the current scope with unused names and can be useful to show which imports are required for traits.
@MaxVerevkin MaxVerevkin merged commit c0fded5 into greshake:master Feb 21, 2025
13 checks passed
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.

2 participants