interleave: Don't use shorthand field initialization
This feature wasn't present in Rust 1.12.
@@ -25,8 +25,7 @@ pub fn new<I, J>(i: I, j: J) -> Interleave<I, J>
where I: IndexedParallelIterator,
J: IndexedParallelIterator<Item = I::Item>
{
- let flag = false;
- Interleave { i, j, flag }
+ Interleave { i: i, j: j, flag: false }
}
impl<I, J> ParallelIterator for Interleave<I, J>
@@ -135,7 +134,7 @@ impl<I, J> InterleaveProducer<I, J>
J: Producer<Item = I::Item>
{
fn new(i: I, j: J, i_len: usize, j_len: usize, flag: bool) -> InterleaveProducer<I, J> {
- InterleaveProducer { i, j, i_len, j_len, flag }
+ InterleaveProducer { i: i, j: j, i_len: i_len, j_len: j_len, flag: flag }
}
}
