-
Notifications
You must be signed in to change notification settings - Fork 13.3k
run rustfmt on std::path #29200
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
run rustfmt on std::path #29200
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
VerbatimUNC(x,y) => 8 + os_str_len(x) + | ||
if os_str_len(y) > 0 { 1 + os_str_len(y) } | ||
else { 0 }, | ||
VerbatimUNC(x, y) => 8 + os_str_len(x) + |
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.
Ughh, rustfmt doesn't do inline if-else expressions well. I'd personally refactor this to use an intermediate value.
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.
I changed that into a block instead... it's more readable, and gets formatted better by rustfmt.
There was a bunch of manual fixes too... rustfmt isn't quite there yet
📌 Commit 37735b4 has been approved by |
no problem, thanks |
No description provided.