Skip to content

Commit

Permalink
Shut up clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Feb 14, 2024
1 parent 5e353e0 commit 3e05297
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ impl Runner<'_> {

// Try stealing from the global queue.
if let Ok(r) = self.state.queue.pop() {
steal(&self.state.queue, &local_queue);
steal(&self.state.queue, local_queue);
return Some(r);
}

Expand All @@ -804,11 +804,11 @@ impl Runner<'_> {
.take(n);

// Remove this runner's local queue.
let iter = iter.filter(|local| !core::ptr::eq(local, &local_queue));
let iter = iter.filter(|local| !core::ptr::eq(*local, local_queue));

// Try stealing from each local queue in the list.
for local in iter {
steal(local, &local_queue);
steal(local, local_queue);
if let Ok(r) = local_queue.pop() {
return Some(r);
}
Expand All @@ -823,7 +823,7 @@ impl Runner<'_> {

if ticks % 64 == 0 {
// Steal tasks from the global queue to ensure fair task scheduling.
steal(&self.state.queue, &local_queue);
steal(&self.state.queue, local_queue);
}

runnable
Expand Down

0 comments on commit 3e05297

Please sign in to comment.