feat(build): Use RUSTFMT to find rustfmt binary (#566)
This commit is contained in:
@@ -165,7 +165,8 @@ pub fn fmt(out_dir: &str) {
|
||||
if !file.ends_with(".rs") {
|
||||
continue;
|
||||
}
|
||||
let result = Command::new("rustfmt")
|
||||
let result =
|
||||
Command::new(std::env::var("RUSTFMT").unwrap_or_else(|_| "rustfmt".to_owned()))
|
||||
.arg("--emit")
|
||||
.arg("files")
|
||||
.arg("--edition")
|
||||
|
||||
Reference in New Issue
Block a user