Skip to content

Commit e9c52a5

Browse files
committed
stop x fmt formatting alt build dirs
1 parent c781584 commit e9c52a5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bootstrap/format.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,8 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
145145
let untracked_paths = untracked_paths_output
146146
.lines()
147147
.filter(|entry| entry.starts_with("??"))
148-
.filter_map(|entry| {
149-
let path =
150-
entry.split(' ').nth(1).expect("every git status entry should list a path");
151-
path.ends_with(".rs").then_some(path)
148+
.map(|entry| {
149+
entry.split(' ').nth(1).expect("every git status entry should list a path")
152150
});
153151
for untracked_path in untracked_paths {
154152
println!("skip untracked path {} during rustfmt invocations", untracked_path);

0 commit comments

Comments
 (0)