Skip to content

Commit 80d81b7

Browse files
yoshuawuytswingo
authored andcommitted
fix formatting
1 parent 690deda commit 80d81b7

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

tests/rust/wasm32-wasip3/src/bin/clocks-sleep.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,20 @@ async fn sleep_10ms_wait_for() {
3535
let dur = 10_000_000;
3636
let deadline = monotonic_clock::now() + dur;
3737
monotonic_clock::wait_for(dur).await;
38-
assert!(monotonic_clock::now() >= deadline, "wait_for never resolves before the deadline");
38+
assert!(
39+
monotonic_clock::now() >= deadline,
40+
"wait_for never resolves before the deadline"
41+
);
3942
}
4043

4144
async fn sleep_10ms_wait_until() {
4245
let dur = 10_000_000;
4346
let deadline = monotonic_clock::now() + dur;
4447
monotonic_clock::wait_until(deadline).await;
45-
assert!(monotonic_clock::now() >= deadline, "wait_until never resolves before the deadline");
48+
assert!(
49+
monotonic_clock::now() >= deadline,
50+
"wait_until never resolves before the deadline"
51+
);
4652
}
4753

4854
fn sleep_0ms() {
@@ -71,4 +77,3 @@ fn sleep_backwards_in_time() {
7177
}
7278

7379
fn main() {}
74-

0 commit comments

Comments
 (0)