diff --git a/src/distribution/dirichlet.rs b/src/distribution/dirichlet.rs index 2d6a4c6d..0cedf169 100644 --- a/src/distribution/dirichlet.rs +++ b/src/distribution/dirichlet.rs @@ -5,9 +5,7 @@ use crate::{prec, Result, StatsError}; use nalgebra::DMatrix; use nalgebra::DVector; use nalgebra::{ - base::allocator::Allocator, - base::dimension::DimName, - DefaultAllocator, Dim, DimMin, U1, + base::allocator::Allocator, base::dimension::DimName, DefaultAllocator, Dim, DimMin, U1, }; use rand::Rng; use std::f64; diff --git a/src/distribution/internal.rs b/src/distribution/internal.rs index e99db133..016227f4 100644 --- a/src/distribution/internal.rs +++ b/src/distribution/internal.rs @@ -58,7 +58,7 @@ pub mod test { assert_abs_diff_eq!(expected, x, epsilon = acc); } - #[allow(dead_code)] // This is not used by all distributions. + #[allow(dead_code)] // This is not used by all distributions. fn test_none(arg: $arg, eval: F) where F: Fn($dist) -> Option, diff --git a/src/distribution/laplace.rs b/src/distribution/laplace.rs index a5812099..a0a85e94 100644 --- a/src/distribution/laplace.rs +++ b/src/distribution/laplace.rs @@ -398,7 +398,7 @@ mod tests { #[test] fn test_max() { test_case(0.0, 1.0, INF, |l| l.max()); - } + } #[test] fn test_density() { diff --git a/src/distribution/multivariate_normal.rs b/src/distribution/multivariate_normal.rs index 3b213a7e..bc0216f5 100644 --- a/src/distribution/multivariate_normal.rs +++ b/src/distribution/multivariate_normal.rs @@ -3,9 +3,8 @@ use crate::distribution::Normal; use crate::statistics::{Max, MeanN, Min, Mode, VarianceN}; use crate::{Result, StatsError}; use nalgebra::{ - base::allocator::Allocator, - base::dimension::DimName, - Cholesky, DefaultAllocator, Dim, DimMin, LU, U1, + base::allocator::Allocator, base::dimension::DimName, Cholesky, DefaultAllocator, Dim, DimMin, + LU, U1, }; use nalgebra::{DMatrix, DVector}; use rand::Rng; diff --git a/src/statistics/traits.rs b/src/statistics/traits.rs index 22ea9eab..d264d719 100644 --- a/src/statistics/traits.rs +++ b/src/statistics/traits.rs @@ -1,7 +1,5 @@ use ::nalgebra::{ - base::allocator::Allocator, - base::dimension::DimName, - DefaultAllocator, Dim, DimMin, U1, + base::allocator::Allocator, base::dimension::DimName, DefaultAllocator, Dim, DimMin, U1, }; use ::num_traits::float::Float;