From b7e860c6cfa974b86a39e2bbafab34aec09aae1a Mon Sep 17 00:00:00 2001 From: Colin Sherratt Date: Sat, 18 Oct 2014 16:29:45 -0400 Subject: [PATCH] fixed warnings from naming in poly.rs --- src/poly.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/poly.rs b/src/poly.rs index 4329ea7..5d961b9 100644 --- a/src/poly.rs +++ b/src/poly.rs @@ -185,9 +185,9 @@ pub trait MapToVertices { fn vertex<'a>(self, map: |T|:'a -> U) -> MapToVerticesIter<'a, Self, T, U>; } -impl, T: Iterator> - MapToVertices for T { - fn vertex<'a>(self, map: |V_IN|:'a -> V_OUT) -> MapToVerticesIter<'a, T, V_IN, V_OUT> { +impl, T: Iterator> + MapToVertices for T { + fn vertex<'a>(self, map: |VIn|:'a -> VOut) -> MapToVerticesIter<'a, T, VIn, VOut> { MapToVerticesIter { src: self, f: map @@ -200,8 +200,8 @@ struct MapToVerticesIter<'a, SRC, T, U> { f: |T|:'a -> U } -impl<'a, P_IN: MapVertex, - SRC: Iterator, T, U, P> Iterator

for MapToVerticesIter<'a, SRC, T, U> { +impl<'a, POut: MapVertex, + SRC: Iterator, T, U, P> Iterator

for MapToVerticesIter<'a, SRC, T, U> { fn next(&mut self) -> Option

{ self.src.next().map(|x| x.map_vertex(|x| (self.f)(x))) }