From cfdf90597d19f18e59af1c2be90c394ef14dd5f1 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Sun, 28 Apr 2024 18:41:37 +0200 Subject: [PATCH] Remove needless `return` statement --- src/distribution/multivariate_normal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/distribution/multivariate_normal.rs b/src/distribution/multivariate_normal.rs index d6f400ec..ff4ec6bc 100644 --- a/src/distribution/multivariate_normal.rs +++ b/src/distribution/multivariate_normal.rs @@ -47,7 +47,7 @@ impl MultivariateNormal { pub fn new(mean: Vec, cov: Vec) -> Result { let mean = DVector::from_vec(mean); let cov = DMatrix::from_vec(mean.len(), mean.len(), cov); - return MultivariateNormal::new_from_nalgebra(mean, cov) + MultivariateNormal::new_from_nalgebra(mean, cov) } /// Constructs a new multivariate normal distribution with a mean of `mean`