From 6d00860ef89dbb84906b452ab4a57290f742da77 Mon Sep 17 00:00:00 2001 From: Zbigniew Siciarz Date: Sat, 24 Jan 2015 18:24:35 +0100 Subject: [PATCH] Fix Debug implementation for DMat. --- 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 6046bb79..de452f6e 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -12,7 +12,7 @@ use std::mem; use structs::dvec::DVec; use traits::operations::{Inv, Transpose, Mean, Cov}; use traits::structure::{Cast, ColSlice, RowSlice, Diag, Eye, Indexable, Shape, Zero, One, BaseNum}; -use std::fmt::{Show, Debug, Formatter, Result, String}; +use std::fmt::{Debug, Display, Formatter, Result}; #[cfg(feature="arbitrary")] use quickcheck::{Arbitrary, Gen}; @@ -634,7 +634,7 @@ impl> ApproxEq for DMat { } } -impl Debug for DMat { +impl Debug for DMat { fn fmt(&self, form:&mut Formatter) -> Result { for i in (0us .. self.nrows()) { for j in (0us .. self.ncols()) {