Run cargo fmt
This commit is contained in:
parent
21d66afb8f
commit
40182becc3
@ -103,7 +103,10 @@ pub fn sleep(&self, duration: Duration) {
|
||||
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")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user