From 4435d2f7f49f6649f3c7f2add83891e06a0fd6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Fri, 28 Mar 2014 20:58:09 +0100 Subject: [PATCH] Update to the last Rust. Version of rustc: rustc 0.10-pre (b8601a3 2014-03-28 06:26:47 -0700) --- src/structs/dvec.rs | 2 +- src/structs/mat.rs | 2 +- src/structs/spec/vec0.rs | 2 +- src/structs/vec.rs | 2 +- src/structs/vec_macros.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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())*) } }