Skip to content

Commit 40182be

Browse files
committed
Run cargo fmt
1 parent 21d66af commit 40182be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/miri/src/clock.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ impl Clock {
103103
ClockKind::Virtual { nanoseconds } => {
104104
// Just pretend that we have slept for some time.
105105
let nanos: u128 = duration.as_nanos();
106-
nanoseconds.update(|x| x.checked_add(nanos).expect("Miri's virtual clock cannot represent an execution this long"));
106+
nanoseconds.update(|x| {
107+
x.checked_add(nanos)
108+
.expect("Miri's virtual clock cannot represent an execution this long")
109+
});
107110
}
108111
}
109112
}

0 commit comments

Comments
 (0)