diff --git a/src/structs/dvec.rs b/src/structs/dvec.rs index dd2ce450..8a8943be 100644 --- a/src/structs/dvec.rs +++ b/src/structs/dvec.rs @@ -161,7 +161,7 @@ impl IterableMut for DVec { impl FromIterator for DVec { #[inline] - fn from_iterator>(mut param: &mut I) -> DVec { + fn from_iterator>(mut param: I) -> DVec { let mut res = DVec { at: Vec::new() }; for e in param { diff --git a/src/structs/mat.rs b/src/structs/mat.rs index 00bad228..2912ffaa 100644 --- a/src/structs/mat.rs +++ b/src/structs/mat.rs @@ -17,7 +17,7 @@ mod metal; mod mat_macros; /// Special identity matrix. All its operation are no-ops. -#[deriving(Eq, Encodable, Decodable, Clone, Rand, Show)] +#[deriving(Eq, Decodable, Clone, Rand, Show)] pub struct Identity; impl Identity { diff --git a/src/structs/spec/vec0.rs b/src/structs/spec/vec0.rs index 38a05e4f..d3dc1662 100644 --- a/src/structs/spec/vec0.rs +++ b/src/structs/spec/vec0.rs @@ -207,7 +207,7 @@ impl One for vec::Vec0 { impl FromIterator for vec::Vec0 { #[inline] - fn from_iterator>(_: &mut I) -> vec::Vec0 { + fn from_iterator>(_: I) -> vec::Vec0 { vec::Vec0 } } diff --git a/src/structs/vec.rs b/src/structs/vec.rs index 7ed494db..327d784d 100644 --- a/src/structs/vec.rs +++ b/src/structs/vec.rs @@ -16,7 +16,7 @@ mod metal; mod vec_macros; /// Vector of dimension 0. -#[deriving(Eq, Encodable, Decodable, Clone, Rand, Zero, Show)] +#[deriving(Eq, Decodable, Clone, Rand, Zero, Show)] pub struct Vec0; /// Vector of dimension 1. diff --git a/src/structs/vec_macros.rs b/src/structs/vec_macros.rs index f3764276..fff0558d 100644 --- a/src/structs/vec_macros.rs +++ b/src/structs/vec_macros.rs @@ -560,7 +560,7 @@ macro_rules! from_iterator_impl( ($t: ident, $param0: ident $(, $paramN: ident)*) => ( impl FromIterator for $t { #[inline] - fn from_iterator>($param0: &mut I) -> $t { + fn from_iterator>(mut $param0: I) -> $t { $t::new($param0.next().unwrap() $(, $paramN.next().unwrap())*) } }