mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
Fix formatting in git-fmt
This commit is contained in:
parent
a3c65d7ca8
commit
bfa093d394
@ -97,7 +97,11 @@ fn uncommitted_files() -> Vec<String> {
|
||||
cmd.arg("--exclude-standard");
|
||||
let output = cmd.output().expect("Couldn't execute Git");
|
||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||
stdout.lines().filter(|s| s.ends_with(".rs")).map(|s| s.to_owned()).collect()
|
||||
stdout
|
||||
.lines()
|
||||
.filter(|s| s.ends_with(".rs"))
|
||||
.map(|s| s.to_owned())
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn check_uncommitted() {
|
||||
|
Loading…
Reference in New Issue
Block a user