forked from M-Labs/nalgebra
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:
parent
eb7600adf6
commit
f9d79fcf5a
@ -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 {
|
||||
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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user