Skip to content

Commit 287c4eb

Browse files
committed
Tidy: fix running rustfmt twice
1 parent f509b26 commit 287c4eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/format.rs

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ struct RustfmtConfig {
3737
}
3838

3939
pub fn format(build: &Build, check: bool) {
40+
if build.config.dry_run {
41+
return;
42+
}
4043
let mut builder = ignore::types::TypesBuilder::new();
4144
builder.add_defaults();
4245
builder.select("rust");

0 commit comments

Comments
 (0)