diff --git a/src/curve.rs b/src/curve.rs index 5fe0acc..e683a61 100644 --- a/src/curve.rs +++ b/src/curve.rs @@ -94,7 +94,6 @@ impl PolyLine { .into_iter() .map(Vector2::into) .map(Vertex::new_f64) - .into_iter() .collect(); let indices = if vertices.is_empty() { vec![] diff --git a/src/state.rs b/src/state.rs index 6be3dba..d8b7999 100644 --- a/src/state.rs +++ b/src/state.rs @@ -155,7 +155,7 @@ impl<'window> State<'window> { }, .. } => { - self.current_pipeline = self.current_pipeline ^ 1; + self.current_pipeline ^= 1; false } _ => false,