Run cargo fmt

This commit is contained in:
tiif 2024-06-09 18:00:43 +08:00
parent 21d66afb8f
commit 40182becc3

View File

@ -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")
});
}
}
}