Skip to content

Commit d68da4c

Browse files
committed
Merge pull request gfx-rs#8 from csherratt/fix-warnings
fixed warnings from naming in poly.rs
2 parents 0038a30 + b7e860c commit d68da4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/poly.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ pub trait MapToVertices<T, U> {
185185
fn vertex<'a>(self, map: |T|:'a -> U) -> MapToVerticesIter<'a, Self, T, U>;
186186
}
187187

188-
impl<V_IN, V_OUT, P, P_IN: MapVertex<V_IN, V_OUT, P>, T: Iterator<P_IN>>
189-
MapToVertices<V_IN, V_OUT> for T {
190-
fn vertex<'a>(self, map: |V_IN|:'a -> V_OUT) -> MapToVerticesIter<'a, T, V_IN, V_OUT> {
188+
impl<VIn, VOut, P, POut: MapVertex<VIn, VOut, P>, T: Iterator<POut>>
189+
MapToVertices<VIn, VOut> for T {
190+
fn vertex<'a>(self, map: |VIn|:'a -> VOut) -> MapToVerticesIter<'a, T, VIn, VOut> {
191191
MapToVerticesIter {
192192
src: self,
193193
f: map
@@ -200,8 +200,8 @@ struct MapToVerticesIter<'a, SRC, T, U> {
200200
f: |T|:'a -> U
201201
}
202202

203-
impl<'a, P_IN: MapVertex<T, U, P>,
204-
SRC: Iterator<P_IN>, T, U, P> Iterator<P> for MapToVerticesIter<'a, SRC, T, U> {
203+
impl<'a, POut: MapVertex<T, U, P>,
204+
SRC: Iterator<POut>, T, U, P> Iterator<P> for MapToVerticesIter<'a, SRC, T, U> {
205205
fn next(&mut self) -> Option<P> {
206206
self.src.next().map(|x| x.map_vertex(|x| (self.f)(x)))
207207
}

0 commit comments

Comments
 (0)