This commit is contained in:
2018-01-16 10:38:00 +01:00
parent 58ae04cb3d
commit 6b918c5434

View File

@@ -345,8 +345,8 @@ impl Iterator for IntoIter {
impl ParallelExtend<u64> for BitSet { impl ParallelExtend<u64> for BitSet {
fn par_extend<I>(&mut self, par_iter: I) fn par_extend<I>(&mut self, par_iter: I)
where I: where
IntoParallelIterator<Item = u64> I: IntoParallelIterator<Item = u64>,
{ {
let list = par_iter let list = par_iter
.into_par_iter() .into_par_iter()
@@ -369,7 +369,7 @@ impl ParallelExtend<u64> for BitSet {
impl FromParallelIterator<u64> for BitSet { impl FromParallelIterator<u64> for BitSet {
fn from_par_iter<I>(par_iter: I) -> Self fn from_par_iter<I>(par_iter: I) -> Self
where where
I: IntoParallelIterator<Item = u64> I: IntoParallelIterator<Item = u64>,
{ {
let mut set = BitSet::new(); let mut set = BitSet::new();
set.par_extend(par_iter); set.par_extend(par_iter);