From 61e985634bb2ea46ee7458ceca87547421480c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Fri, 16 Aug 2013 10:14:01 +0200 Subject: [PATCH] Fix FromIterator impl. --- src/dvec.rs | 4 ++-- src/vec0_spec.rs | 4 ++-- src/vec_macros.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dvec.rs b/src/dvec.rs index 0a6a9b0d..ace36cbc 100644 --- a/src/dvec.rs +++ b/src/dvec.rs @@ -46,8 +46,8 @@ impl IterableMut for DVec { } } -impl> FromIterator for DVec { - fn from_iterator(mut param: &mut Iter) -> DVec { +impl FromIterator for DVec { + fn from_iterator>(mut param: &mut I) -> DVec { let mut res = DVec { at: ~[] }; for e in param { diff --git a/src/vec0_spec.rs b/src/vec0_spec.rs index 00e0bfd6..5bbcb887 100644 --- a/src/vec0_spec.rs +++ b/src/vec0_spec.rs @@ -231,9 +231,9 @@ impl One for vec::Vec0 { } } -impl> FromIterator for vec::Vec0 { +impl FromIterator for vec::Vec0 { #[inline] - fn from_iterator(_: &mut Iter) -> vec::Vec0 { + fn from_iterator>(_: &mut I) -> vec::Vec0 { vec::Vec0 } } diff --git a/src/vec_macros.rs b/src/vec_macros.rs index 4cc92fea..d978da6c 100644 --- a/src/vec_macros.rs +++ b/src/vec_macros.rs @@ -480,9 +480,9 @@ macro_rules! one_impl( macro_rules! from_iterator_impl( ($t: ident, $param0: ident $(, $paramN: ident)*) => ( - impl> FromIterator for $t { + impl FromIterator for $t { #[inline] - fn from_iterator($param0: &mut Iter) -> $t { + fn from_iterator>($param0: &mut I) -> $t { $t::new($param0.next().unwrap() $(, $paramN.next().unwrap())*) } }