From f9d79fcf5a8bf984b52b3c3048844780f09bd11b Mon Sep 17 00:00:00 2001 From: Antsiscool Date: Thu, 10 Sep 2015 14:34:41 +1000 Subject: [PATCH] Removed Display trait from Debug method for DMat. DMat was unable to show using debug if the object stored in it did not implement Display. --- src/structs/dmat.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index 3a176398..ebbf0ce9 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -633,11 +633,11 @@ impl> ApproxEq for DMat { } } -impl Debug for DMat { +impl Debug for DMat { fn fmt(&self, form:&mut Formatter) -> Result { for i in 0..self.nrows() { for j in 0..self.ncols() { - let _ = write!(form, "{} ", self[(i, j)]); + let _ = write!(form, "{:?} ", self[(i, j)]); } let _ = write!(form, "\n"); }