Skip to content

Commit b8e0e79

Browse files
committed
bootstrap/format: remove unnecessary paths.push
1 parent 1accf06 commit b8e0e79

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/bootstrap/format.rs

-4
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
127127
Err(_) => false,
128128
};
129129

130-
let mut paths = paths.to_vec();
131-
132130
if git_available {
133131
let in_working_tree = match build
134132
.config
@@ -201,8 +199,6 @@ pub fn format(build: &Builder<'_>, check: bool, paths: &[PathBuf]) {
201199
"WARN: Something went wrong when running git commands:\n{err}\n\
202200
Falling back to formatting all files."
203201
);
204-
// Something went wrong when getting the version. Just format all the files.
205-
paths.push(".".into());
206202
}
207203
}
208204
}

0 commit comments

Comments
 (0)