Fix Debug implementation for DMat.

This commit is contained in:
Zbigniew Siciarz 2015-01-24 18:24:35 +01:00
parent 1b6a44e8fb
commit 6d00860ef8
1 changed files with 2 additions and 2 deletions

View File

@ -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<N: ApproxEq<N>> ApproxEq<N> for DMat<N> {
}
}
impl<N: Show + Copy + String> Debug for DMat<N> {
impl<N: Debug + Copy + Display> Debug for DMat<N> {
fn fmt(&self, form:&mut Formatter) -> Result {
for i in (0us .. self.nrows()) {
for j in (0us .. self.ncols()) {