Run cargo fmt
This commit is contained in:
parent
21d66afb8f
commit
40182becc3
1 changed files with 4 additions and 1 deletions
|
|
@ -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")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue