Skip to content

Commit

Permalink
Apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vks committed Apr 13, 2021
1 parent 595f545 commit 4538ff7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
4 changes: 1 addition & 3 deletions src/distribution/dirichlet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/distribution/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<F, T>(arg: $arg, eval: F)
where
F: Fn($dist) -> Option<T>,
Expand Down
2 changes: 1 addition & 1 deletion src/distribution/laplace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ mod tests {
#[test]
fn test_max() {
test_case(0.0, 1.0, INF, |l| l.max());
}
}

#[test]
fn test_density() {
Expand Down
5 changes: 2 additions & 3 deletions src/distribution/multivariate_normal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/statistics/traits.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 4538ff7

Please # to comment.