diff options
| author | Eric Huss <eric@huss.org> | 2020-03-18 08:15:29 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2020-03-18 08:15:29 -0700 |
| commit | 287c4eb0947c5b2df63633fc71005f2bab541673 (patch) | |
| tree | e7ff6c8ec11a593ec5ce69919963229c303c70f3 /src/bootstrap | |
| parent | f509b26a7730d721ef87423a72b3fdf8724b4afa (diff) | |
| download | rust-287c4eb0947c5b2df63633fc71005f2bab541673.tar.gz rust-287c4eb0947c5b2df63633fc71005f2bab541673.zip | |
Tidy: fix running rustfmt twice
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/format.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/format.rs b/src/bootstrap/format.rs index a4acb14ee4b..1616ae15d31 100644 --- a/src/bootstrap/format.rs +++ b/src/bootstrap/format.rs @@ -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"); |
