Skip to content

Commit 1602824

Browse files
committed
Format let-else
1 parent c42a143 commit 1602824

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/with-metadata.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ where
122122
{
123123
let task = spawn(future);
124124
while !task.is_finished() {
125-
let Some(runnable) = QUEUE.with(|queue| queue.borrow_mut().pop()) else { thread::yield_now(); continue };
125+
let Some(runnable) = QUEUE.with(|queue| queue.borrow_mut().pop()) else {
126+
thread::yield_now();
127+
continue;
128+
};
126129
runnable.0.run();
127130
}
128131
}

0 commit comments

Comments
 (0)