Skip to content

Commit

Permalink
Tidy: fix running rustfmt twice
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Mar 18, 2020
1 parent f509b26 commit 287c4eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bootstrap/format.rs
Expand Up @@ -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");
Expand Down

0 comments on commit 287c4eb

Please sign in to comment.