diff --git a/src/cgmath/vector.rs b/src/cgmath/vector.rs index 7bd5d84..a80c1ae 100644 --- a/src/cgmath/vector.rs +++ b/src/cgmath/vector.rs @@ -80,7 +80,7 @@ pub trait Vector // Utility macro for generating associated functions for the vectors macro_rules! vec( ($Self:ident <$S:ident> { $($field:ident),+ }, $n:expr) => ( - #[deriving(Eq, Clone, Hash)] + #[deriving(Eq, TotalEq, Clone, Hash)] pub struct $Self { $(pub $field: S),+ } impl<$S: Primitive> $Self<$S> {