-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 liballoc_jemalloc folder #34086
run rustfmt on liballoc_jemalloc folder #34086
Conversation
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
"static" | ||
} else { | ||
"dylib" | ||
}; |
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.
The previous version was much better here.
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.
cc @nrc . In the If expression. If we return static (?) strings and the total if expression fits under 100 characters, then we format the code like this.
let kind = if name.ends_with(".a") { "static" } else { "dylib" };
what do you say?
@nagisa Can we go ahead and land this or do you want that formatting fixed here? |
Its fine I guess. Eventually somebody else will come along and submit a PR with the same thing in it anyway. @bors r+ |
📌 Commit adf2c43 has been approved by |
@bors rollup |
run rustfmt on liballoc_jemalloc folder
…lloc, r=nagisa run rustfmt on liballoc_jemalloc folder
No description provided.