From aa7d4b927cc9e6c4039c72f18b234bcbc0c097d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 30 Apr 2016 14:32:16 +0200 Subject: [PATCH] Implement Display for Identity. --- Cargo.toml | 2 +- src/structs/matrix.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ffcde7a1..f1d6f68e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nalgebra" -version = "0.8.1" +version = "0.8.2" authors = [ "Sébastien Crozet " ] # FIXME: add the contributors. description = "Linear algebra library for computer physics, computer graphics and general low-dimensional linear algebra for Rust." diff --git a/src/structs/matrix.rs b/src/structs/matrix.rs index 4949d770..e52f64e0 100644 --- a/src/structs/matrix.rs +++ b/src/structs/matrix.rs @@ -35,6 +35,12 @@ impl Identity { } } +impl fmt::Display for Identity { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "Identity") + } +} + /// Square matrix of dimension 1. #[repr(C)] #[derive(Eq, PartialEq, RustcEncodable, RustcDecodable, Clone, Hash, Debug, Copy)]