We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d66af commit 40182beCopy full SHA for 40182be
src/tools/miri/src/clock.rs
@@ -103,7 +103,10 @@ impl Clock {
103
ClockKind::Virtual { nanoseconds } => {
104
// Just pretend that we have slept for some time.
105
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"));
+ nanoseconds.update(|x| {
107
+ x.checked_add(nanos)
108
+ .expect("Miri's virtual clock cannot represent an execution this long")
109
+ });
110
}
111
112
0 commit comments