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.
This commit is contained in:
Antsiscool 2015-09-10 14:34:41 +10:00
parent eb7600adf6
commit f9d79fcf5a
1 changed files with 2 additions and 2 deletions

View File

@ -633,11 +633,11 @@ impl<N: ApproxEq<N>> ApproxEq<N> for DMat<N> {
} }
} }
impl<N: Debug + Copy + Display> Debug for DMat<N> { impl<N: Debug + Copy> Debug for DMat<N> {
fn fmt(&self, form:&mut Formatter) -> Result { fn fmt(&self, form:&mut Formatter) -> Result {
for i in 0..self.nrows() { for i in 0..self.nrows() {
for j in 0..self.ncols() { for j in 0..self.ncols() {
let _ = write!(form, "{} ", self[(i, j)]); let _ = write!(form, "{:?} ", self[(i, j)]);
} }
let _ = write!(form, "\n"); let _ = write!(form, "\n");
} }