]> git.proxmox.com Git - rustc.git/blobdiff - vendor/rayon/src/iter/par_bridge.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / vendor / rayon / src / iter / par_bridge.rs
index c8197ea65a48a0e4410883cb3b34174ff0d3ae11..4c2b96e64aa46ed21d92ffbb583a958592f7d37a 100644 (file)
@@ -4,9 +4,9 @@ use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
 use std::sync::{Mutex, TryLockError};
 use std::thread::yield_now;
 
-use current_num_threads;
-use iter::plumbing::{bridge_unindexed, Folder, UnindexedConsumer, UnindexedProducer};
-use iter::ParallelIterator;
+use crate::current_num_threads;
+use crate::iter::plumbing::{bridge_unindexed, Folder, UnindexedConsumer, UnindexedProducer};
+use crate::iter::ParallelIterator;
 
 /// Conversion trait to convert an `Iterator` to a `ParallelIterator`.
 ///
@@ -44,7 +44,7 @@ use iter::ParallelIterator;
 /// assert_eq!(&*output, &["one!", "three!", "two!"]);
 /// ```
 pub trait ParallelBridge: Sized {
-    /// Create a bridge from this type to a `ParallelIterator`.
+    /// Creates a bridge from this type to a `ParallelIterator`.
     fn par_bridge(self) -> IterBridge<Self>;
 }
 
@@ -96,7 +96,7 @@ where
     }
 }
 
-struct IterParallelProducer<'a, Iter: Iterator + 'a> {
+struct IterParallelProducer<'a, Iter: Iterator> {
     split_count: &'a AtomicUsize,
     done: &'a AtomicBool,
     iter: &'a Mutex<(Iter, Worker<Iter::Item>)>,