]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/format.rs
bootstrap: fix a couple of clippy lint warnings
[rust.git] / src / bootstrap / format.rs
index 390b7e96b9a543cecdd806fe2369b10469bd9f50..6f93082e6752f01c559b572dcf85ff95873e8270 100644 (file)
@@ -87,7 +87,7 @@ pub fn format(build: &Build, check: bool) {
                 .lines()
                 .filter(|entry| entry.starts_with("??"))
                 .map(|entry| {
-                    entry.split(" ").nth(1).expect("every git status entry should list a path")
+                    entry.split(' ').nth(1).expect("every git status entry should list a path")
                 });
             for untracked_path in untracked_paths {
                 eprintln!("skip untracked path {} during rustfmt invocations", untracked_path);