about summary refs log tree commit diff
diff options
context:
space:
mode:
authortiif <pekyuan@gmail.com>2024-06-09 18:00:43 +0800
committertiif <pekyuan@gmail.com>2024-06-09 18:00:58 +0800
commit40182becc33908598d6ee00e5741fd6d218fa2c1 (patch)
treef42801535a6de1757fb47cd3f22f2b454be2dca6
parent21d66afb8f9f3736fcd2a2ff82f1d7aa31f15915 (diff)
downloadrust-40182becc33908598d6ee00e5741fd6d218fa2c1.tar.gz
rust-40182becc33908598d6ee00e5741fd6d218fa2c1.zip
Run cargo fmt
-rw-r--r--src/tools/miri/src/clock.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/miri/src/clock.rs b/src/tools/miri/src/clock.rs
index de6e883f117..3f86767277a 100644
--- a/src/tools/miri/src/clock.rs
+++ b/src/tools/miri/src/clock.rs
@@ -103,7 +103,10 @@ impl Clock {
             ClockKind::Virtual { nanoseconds } => {
                 // Just pretend that we have slept for some time.
                 let nanos: u128 = duration.as_nanos();
-                nanoseconds.update(|x| x.checked_add(nanos).expect("Miri's virtual clock cannot represent an execution this long"));
+                nanoseconds.update(|x| {
+                    x.checked_add(nanos)
+                        .expect("Miri's virtual clock cannot represent an execution this long")
+                });
             }
         }
     }