From 6c8f14966cc1a42743fd7499157651521cab3da5 Mon Sep 17 00:00:00 2001 From: Ben Foppa Date: Mon, 15 Sep 2014 21:30:36 -0400 Subject: [PATCH] update for rustc 21d1f4d7c --- src/structs/spec/vec0.rs | 16 ---------------- src/structs/vec.rs | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/structs/spec/vec0.rs b/src/structs/spec/vec0.rs index bd016bc3..b2734fae 100644 --- a/src/structs/spec/vec0.rs +++ b/src/structs/spec/vec0.rs @@ -7,14 +7,6 @@ use traits::structure::{Iterable, IterableMut, Indexable, Basis, Dim}; use traits::geometry::{Translation, Dot, Norm}; use structs::vec; -impl vec::Vec0 { - /// Creates a new vector. - #[inline] - pub fn new() -> vec::Vec0 { - vec::Vec0 - } -} - impl Indexable for vec::Vec0 { #[inline] fn at(&self, _: uint) -> N { @@ -44,14 +36,6 @@ impl Indexable for vec::Vec0 { } } -impl vec::Vec0 { - /// Creates a new vector. The parameter is not taken in account. - #[inline] - pub fn new_repeat(_: N) -> vec::Vec0 { - vec::Vec0 - } -} - impl Iterable for vec::Vec0 { #[inline] fn iter<'l>(&'l self) -> Items<'l, N> { diff --git a/src/structs/vec.rs b/src/structs/vec.rs index c6abd67f..18d4a7d6 100644 --- a/src/structs/vec.rs +++ b/src/structs/vec.rs @@ -17,6 +17,20 @@ use traits::structure::{Basis, Cast, Dim, Indexable, Iterable, IterableMut}; #[deriving(Eq, PartialEq, Decodable, Clone, Rand, Zero, Show)] pub struct Vec0; +impl Vec0 { + /// Creates a new vector. + #[inline] + pub fn new() -> Vec0 { + Vec0 + } + + /// Creates a new vector. The parameter is not taken in account. + #[inline] + pub fn new_repeat(_: N) -> Vec0 { + Vec0 + } +} + /// Vector of dimension 1. #[deriving(Eq, PartialEq, Encodable, Decodable, Clone, Hash, Rand, Zero, Show)] pub struct Vec1 {