Skip to content

Commit 3e05297

Browse files
committed
Shut up clippy
1 parent 5e353e0 commit 3e05297

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ impl Runner<'_> {
787787

788788
// Try stealing from the global queue.
789789
if let Ok(r) = self.state.queue.pop() {
790-
steal(&self.state.queue, &local_queue);
790+
steal(&self.state.queue, local_queue);
791791
return Some(r);
792792
}
793793

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

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

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

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

829829
runnable

0 commit comments

Comments
 (0)