diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2021-01-16 04:33:09 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2021-01-16 04:33:09 -0300 |
commit | 76681d40623c8a6b8b48ae1108568ed5b799f7ae (patch) | |
tree | ec0a1f303999899e9c1db54d66482a97683cbf29 /src/poly/iter.rs | |
parent | 4f2afb1ca7063206411475bce89669238e41cb2b (diff) | |
download | bezier-76681d40623c8a6b8b48ae1108568ed5b799f7ae.tar.gz bezier-76681d40623c8a6b8b48ae1108568ed5b799f7ae.zip |
Run cargo fmt for the first time
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>> { |