From c643b1535ffb106cf582763804bce655e3fb116c Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 3 Oct 2024 21:52:32 +0200 Subject: Comments are for nerds --- libpsi-core/src/maths/matrix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpsi-core/src/maths/matrix.rs') diff --git a/libpsi-core/src/maths/matrix.rs b/libpsi-core/src/maths/matrix.rs index bc91edd..74857d1 100644 --- a/libpsi-core/src/maths/matrix.rs +++ b/libpsi-core/src/maths/matrix.rs @@ -174,7 +174,7 @@ impl fmt::Display for Matrix { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let max_width = (0..self.rows) .flat_map(|i| (0..self.cols).map(move |j| self.get(i, j))) - .map(|x| format!("{:.2}", x).split('.').next().unwrap().len()) // Length of integer part + .map(|x| format!("{:.2}", x).split('.').next().unwrap().len()); .max() .unwrap_or(0); -- cgit v1.3