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. |
alice-i-cecile
left a comment
There was a problem hiding this comment.
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