We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Strips out unnecessary path qualifiers on types/functions/structs when the module they are being imported from is already in scope.
See bevyengine/bevy#10749 for an example of this in practice, powered by RustRover's refactoring tools.
Maybe makes imports less clear in cases where you really want to be explicit?
This is a weaker version of absolute_paths, focused on redundancy rather than enforcing a universal style. In some cases, you might want the latter.
use bevy::prelude::*; let world = bevy::ecs::World::new();
Could be written as:
use bevy::prelude::*; let world = World::new();
The text was updated successfully, but these errors were encountered:
There exists a rustc lint which is allowed-by-default: unused_qualifications
unused_qualifications
Sorry, something went wrong.
No branches or pull requests
What it does
Strips out unnecessary path qualifiers on types/functions/structs when the module they are being imported from is already in scope.
See bevyengine/bevy#10749 for an example of this in practice, powered by RustRover's refactoring tools.
Advantage
Drawbacks
Maybe makes imports less clear in cases where you really want to be explicit?
This is a weaker version of absolute_paths, focused on redundancy rather than enforcing a universal style. In some cases, you might want the latter.
Example
Could be written as:
The text was updated successfully, but these errors were encountered: