We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e353e0 commit c7d9723Copy full SHA for c7d9723
src/lib.rs
@@ -787,7 +787,7 @@ impl Runner<'_> {
787
788
// Try stealing from the global queue.
789
if let Ok(r) = self.state.queue.pop() {
790
- steal(&self.state.queue, &local_queue);
+ steal(&self.state.queue, local_queue);
791
return Some(r);
792
}
793
@@ -804,11 +804,11 @@ impl Runner<'_> {
804
.take(n);
805
806
// Remove this runner's local queue.
807
- let iter = iter.filter(|local| !core::ptr::eq(local, &local_queue));
+ let iter = iter.filter(|local| !core::ptr::eq(*local, local_queue));
808
809
// Try stealing from each local queue in the list.
810
for local in iter {
811
- steal(local, &local_queue);
+ steal(local, local_queue);
812
if let Ok(r) = local_queue.pop() {
813
814
0 commit comments