about summary refs log tree commit diff
path: root/src/bootstrap/format.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-13 18:15:14 +0000
committerbors <bors@rust-lang.org>2023-07-13 18:15:14 +0000
commita161ab00dbf660dd587ee42a8c855bac94047ddb (patch)
treee0615e207acf3fec0d089d1ec334e63c8bcb40cb /src/bootstrap/format.rs
parent1b3e68692592d71938df8e7fd8e53fbe5e7ef58c (diff)
parente8b0b1781d177ab4aa0dca80d3c648f47287d149 (diff)
Auto merge of #113637 - Mark-Simulacrum:bootstrap-bump, r=ozkanonur
Bump bootstrap to 1.72 beta
Diffstat (limited to 'src/bootstrap/format.rs')
-rw-r--r--src/bootstrap/format.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bootstrap/format.rs b/src/bootstrap/format.rs
index ebf068b2cb1..4330e126398 100644
--- a/src/bootstrap/format.rs
+++ b/src/bootstrap/format.rs
@@ -66,13 +66,17 @@ fn get_rustfmt_version(build: &Builder<'_>) -> Option<(String, PathBuf)> {
 
 /// Return whether the format cache can be reused.
 fn verify_rustfmt_version(build: &Builder<'_>) -> bool {
-    let Some((version, stamp_file)) = get_rustfmt_version(build) else {return false;};
+    let Some((version, stamp_file)) = get_rustfmt_version(build) else {
+        return false;
+    };
     !program_out_of_date(&stamp_file, &version)
 }
 
 /// Updates the last rustfmt version used
 fn update_rustfmt_version(build: &Builder<'_>) {
-    let Some((version, stamp_file)) = get_rustfmt_version(build) else {return;};
+    let Some((version, stamp_file)) = get_rustfmt_version(build) else {
+        return;
+    };
     t!(std::fs::write(stamp_file, version))
 }