-
Notifications
You must be signed in to change notification settings - Fork 13.3k
stop x fmt
formatting untracked directories
#110664
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
Conversation
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.
r=me with or without the nit
.filter(|entry| entry.starts_with("??")) | ||
.filter_map(|entry| { | ||
let path = | ||
entry.split(' ').nth(1).expect("every git status entry should list a path"); | ||
path.ends_with(".rs").then_some(path) | ||
.map(|entry| { | ||
entry.split(' ').nth(1).expect("every git status entry should list a path") |
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.
you can simplify this slightly:
.filter_map(|entry| entry.strip_prefix("?? "))
(and remove .filter
above)
@bors delegate=Ezrashaw rollup |
✌️ @Ezrashaw can now approve this pull request |
x fmt
formatting alt build dirsx fmt
formatting untracked directories
Personally I think it's looks cleaner as is but that's just me. @bors r+ (ooh the power) |
@bors r- r=jyn514 |
…t, r=jyn514 stop `x fmt` formatting untracked directories I don't think there's anything else to do? I've confirmed that you get a "skip untracked path foo/ during rustfmt invocations" for the alternative build directory. r? `@jyn514`
…t, r=jyn514 stop `x fmt` formatting untracked directories I don't think there's anything else to do? I've confirmed that you get a "skip untracked path foo/ during rustfmt invocations" for the alternative build directory. r? ``@jyn514``
…t, r=jyn514 stop `x fmt` formatting untracked directories I don't think there's anything else to do? I've confirmed that you get a "skip untracked path foo/ during rustfmt invocations" for the alternative build directory. r? ```@jyn514```
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#110661 (rustdoc: clean up settings.css and settings.js) - rust-lang#110663 (Add note about change in bootstrap defaults) - rust-lang#110664 (stop `x fmt` formatting untracked directories) - rust-lang#110668 (Fix printing native CPU on cross-compiled compiler.) - rust-lang#110689 (Fix grammar in core::hint::unreachable_unchecked() docs) - rust-lang#110700 (Don't infer fn return type to return itself) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
I don't think there's anything else to do? I've confirmed that you get a "skip untracked path foo/ during rustfmt invocations" for the alternative build directory.
r? @jyn514