about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEzra Shaw <ezrasure@outlook.com>2023-04-22 13:25:38 +1200
committerEzra Shaw <ezrasure@outlook.com>2023-04-22 13:25:38 +1200
commite9c52a5cbbe03b56e8fe7b35c3b488b4bad5b17e (patch)
tree5c6c12421a0e75542cf522ad5a8096c18587aa00
parentc7815840793b980d0aae7d5a2f5d9bb1fd6c0d1e (diff)
downloadrust-e9c52a5cbbe03b56e8fe7b35c3b488b4bad5b17e.tar.gz
rust-e9c52a5cbbe03b56e8fe7b35c3b488b4bad5b17e.zip
stop `x fmt` formatting alt build dirs
-rw-r--r--src/bootstrap/format.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/bootstrap/format.rs b/src/bootstrap/format.rs
index b79969663ca..d8d3f300a35 100644
--- a/src/bootstrap/format.rs
+++ b/src/bootstrap/format.rs
@@ -145,10 +145,8 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
             let untracked_paths = untracked_paths_output
                 .lines()
                 .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")
                 });
             for untracked_path in untracked_paths {
                 println!("skip untracked path {} during rustfmt invocations", untracked_path);