From 004091a0bc58ca03dc63c40c22219ffba877e162 Mon Sep 17 00:00:00 2001 From: Owen Brooks Date: Wed, 15 Jun 2022 20:37:37 +1000 Subject: [PATCH] Fix formatting --- src/base/matrix.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/base/matrix.rs b/src/base/matrix.rs index 37fc8b14..11c500cd 100644 --- a/src/base/matrix.rs +++ b/src/base/matrix.rs @@ -1880,7 +1880,8 @@ macro_rules! impl_fmt { S: RawStorage, { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - if !f.alternate() { // pretty print in 2D layout + if !f.alternate() { + // pretty print in 2D layout #[cfg(feature = "std")] fn val_width(val: &T, f: &mut fmt::Formatter<'_>) -> usize { match f.precision() { @@ -1942,7 +1943,8 @@ macro_rules! impl_fmt { "", width = max_length_with_space * ncols - 1 ) - } else { // print on single line with semicolon-delimited rows and comma-delimited columns + } else { + // print on single line with semicolon-delimited rows and comma-delimited columns let (nrows, ncols) = self.shape(); write!(f, "[")?; for row in 0..nrows {