Skip to content

Commit 2abd20f

Browse files
committed
chore: fmt
Signed-off-by: John Nunley <[email protected]>
1 parent 5148e73 commit 2abd20f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/lib.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,11 @@ impl<'a> Executor<'a> {
227227
let state = self.state();
228228
let runnable = state
229229
.tick_with(|local, steal| {
230-
local.queue.pop().ok()
231-
.or_else(|| {
232-
if steal {
233-
state.queue.pop().ok()
234-
} else {
235-
None
236-
}
237-
})
230+
local
231+
.queue
232+
.pop()
233+
.ok()
234+
.or_else(|| if steal { state.queue.pop().ok() } else { None })
238235
})
239236
.await;
240237
runnable.run();
@@ -577,7 +574,10 @@ impl State {
577574
}
578575

579576
/// Run a tick using the provided function to get the next task.
580-
async fn tick_with(&self, mut local_ticker: impl FnMut(&LocalQueue, bool) -> Option<Runnable>) -> Runnable {
577+
async fn tick_with(
578+
&self,
579+
mut local_ticker: impl FnMut(&LocalQueue, bool) -> Option<Runnable>,
580+
) -> Runnable {
581581
let local = self.local_queue.get_or_default();
582582

583583
loop {

0 commit comments

Comments
 (0)