From 15d12e53229890b23340960d3731b37958e44380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Thu, 28 Nov 2013 20:14:25 +0100 Subject: [PATCH] Implement AbsoluteRotate for Identity. --- src/structs/mat.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/structs/mat.rs b/src/structs/mat.rs index 855bb8f2..baf2c1c5 100644 --- a/src/structs/mat.rs +++ b/src/structs/mat.rs @@ -18,17 +18,13 @@ mod mat_macros; /// Special identity matrix. All its operation are no-ops. #[deriving(Eq, Encodable, Decodable, Clone, DeepClone, Rand, Zero, ToStr)] -pub struct Identity { - unused: uint // XXX: zero-sized structures ICE when used cross-crate. -} +pub struct Identity; impl Identity { /// Creates a new identity matrix. #[inline] pub fn new() -> Identity { - Identity { - unused: 0 - } + Identity } }