Tidy: fix running rustfmt twice
This commit is contained in:
parent
f509b26a77
commit
287c4eb094
@ -37,6 +37,9 @@ struct RustfmtConfig {
|
||||
}
|
||||
|
||||
pub fn format(build: &Build, check: bool) {
|
||||
if build.config.dry_run {
|
||||
return;
|
||||
}
|
||||
let mut builder = ignore::types::TypesBuilder::new();
|
||||
builder.add_defaults();
|
||||
builder.select("rust");
|
||||
|
Loading…
Reference in New Issue
Block a user