summaryrefslogtreecommitdiffstats
path: root/src/bootstrap/format.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap/format.rs')
-rw-r--r--src/bootstrap/format.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/bootstrap/format.rs b/src/bootstrap/format.rs
index d658be0b8..11f2762f7 100644
--- a/src/bootstrap/format.rs
+++ b/src/bootstrap/format.rs
@@ -127,8 +127,6 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
Err(_) => false,
};
- let mut paths = paths.to_vec();
-
if git_available {
let in_working_tree = match build
.config
@@ -201,8 +199,6 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
"WARN: Something went wrong when running git commands:\n{err}\n\
Falling back to formatting all files."
);
- // Something went wrong when getting the version. Just format all the files.
- paths.push(".".into());
}
}
}