diff --git a/src/base/matrix.rs b/src/base/matrix.rs index 01105524..8bc02b21 100644 --- a/src/base/matrix.rs +++ b/src/base/matrix.rs @@ -1356,10 +1356,7 @@ where { #[inline] fn eq(&self, right: &Matrix) -> bool { - if self.shape() == right.shape() { - return self.iter().zip(right.iter()).all(|(l, r)| l == r) - } - false + self.shape() == right.shape() && self.iter().zip(right.iter()).all(|(l, r)| l == r) } }