fix(build): Ignore non .rs files with rustfmt (#284)

Fixes #283
This commit is contained in:
Lucio Franco
2020-03-05 15:21:02 -05:00
committed by GitHub
parent f65cda1ea0
commit 7dfa2a277b
+3
View File
@@ -80,6 +80,9 @@ pub fn fmt(out_dir: &str) {
for entry in dir {
let file = entry.unwrap().file_name().into_string().unwrap();
if !file.ends_with(".rs") {
continue;
}
let out = Command::new("rustfmt")
.arg("--emit")
.arg("files")