Skip to content

Commit

Permalink
Add Matrix typename to Debug format output
Browse files Browse the repository at this point in the history
  • Loading branch information
owenbrooks committed Jun 11, 2022
1 parent c910968 commit 37de790
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/base/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ pub struct Matrix<T, R, C, S> {

impl<T, R: Dim, C: Dim, S: fmt::Debug> fmt::Debug for Matrix<T, R, C, S> {
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
write!(formatter, "Matrix ")?;
self.data.fmt(formatter)
}
}
Expand Down

0 comments on commit 37de790

Please sign in to comment.