-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Remove unnecessary path prefixes #10749
Conversation
Looks interesting but in some cases it seems quite aggressive. For example, |
I have changed 119 files, if nothing was controversial I would be concerned. :D I already knew I would have to revert some parts. Just tell me what. And if it's too much work to go through it all I can break up the Pull Request into several smaller. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good changes. I'd like to get this through ASAP to avoid killing you with merge conflicts.
Some additional cleanup you can do, and I would really like a clippy lint for this.
I actually quite like not using path imports for std::Result. IMO that should be saved to call out unusual Result
types that are punning. (Don't do this! Bad API!)
Do you want me to add a clippy lint? I have no idea how to do that. |
Lints are added at the workspace level here. Now, let's check the list of clippy lints to see if anything matches... The |
@alice-i-cecile I just wanted to point you to Dylint's Please forgive me jumping on your PR. |
Very useful, no worries! I'm a bit nervous about adding another tool to our CI for now, but I'll keep it on my radar :) |
@tygyh once you can get this passing CI and free of merge conflicts, I'll merge this as trivial <3 |
01bdde3
to
2e84f1a
Compare
@alice-i-cecile It is ready now! |
# Objective - Shorten paths by removing unnecessary prefixes ## Solution - Remove the prefixes from many paths which do not need them. Finding the paths was done automatically using built-in refactoring tools in Jetbrains RustRover.
Objective
Solution