From bc4d45fa639e32394081f726cbb1f093eb469b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Sun, 17 Jan 2021 18:08:45 -0300 Subject: Remove dead code --- src/poly/iter.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/poly/iter.rs') diff --git a/src/poly/iter.rs b/src/poly/iter.rs index 059d7e3..90cc4b5 100644 --- a/src/poly/iter.rs +++ b/src/poly/iter.rs @@ -1,15 +1,14 @@ -use crate::number::Number; use std::cmp; use std::iter::{Take, Zip}; pub struct Iter { index: usize, - data: Vec, + data: Vec, degree: usize, } impl Iter { - pub fn new(data: Vec, degree: usize) -> Iter { + pub fn new(data: Vec, degree: usize) -> Iter { Iter { index: 0, data, @@ -26,9 +25,9 @@ impl Iter { } impl Iterator for Iter { - type Item = Number; + type Item = f32; - fn next(&mut self) -> Option { + fn next(&mut self) -> Option { self.index += 1; if self.index <= self.data.len() { Some(self.data[self.index - 1]) -- cgit v1.2.3