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