diff options
| author | Ralf Jung <post@ralfj.de> | 2023-09-01 17:04:44 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-09-01 17:05:10 +0200 |
| commit | b8e0e797e701f60bd975b3f8a295e1cb1a1de58c (patch) | |
| tree | 58c4f20156c8696239797fa76590df1d68b6f3cc /src | |
| parent | 1accf068d8fa22f29437651283ea1f27058ed8ac (diff) | |
bootstrap/format: remove unnecessary paths.push
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/format.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/bootstrap/format.rs b/src/bootstrap/format.rs index d658be0b8eb..11f2762f766 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()); } } } |
