diff options
Diffstat (limited to 'src/poly/iter.rs')
-rw-r--r-- | src/poly/iter.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/poly/iter.rs b/src/poly/iter.rs index abc7462..059d7e3 100644 --- a/src/poly/iter.rs +++ b/src/poly/iter.rs @@ -1,16 +1,20 @@ use crate::number::Number; use std::cmp; -use std::iter::{Zip, Take}; +use std::iter::{Take, Zip}; pub struct Iter { index: usize, data: Vec<Number>, - degree: usize + degree: usize, } impl Iter { pub fn new(data: Vec<Number>, degree: usize) -> Iter { - Iter { index: 0, data, degree } + Iter { + index: 0, + data, + degree, + } } pub fn zip(self, other: Self) -> Zip<Take<Iter>, Take<Iter>> { |