Merge pull request #152 from Antsiscool/master

Removed Display trait requirement from Debug method for DMat.
This commit is contained in:
Sébastien Crozet 2015-09-13 23:50:38 +02:00
commit 0e8fbf070f

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");
} }