From 4a9999b11d6665676e452b8b781158c31416115a Mon Sep 17 00:00:00 2001 From: Jake Greenfield Date: Fri, 25 Apr 2014 05:54:00 -0400 Subject: [PATCH] Add deriving TotalEq for Vector. --- src/cgmath/vector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> {