Skip to content

Commit c40725e

Browse files
committed
cargo fmt
1 parent f2d0af2 commit c40725e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/naive_bayes/gaussian.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,18 @@ impl<
5959
> fmt::Display for BaseNaiveBayes<TX, TY, X, Y, GaussianNBDistribution<TY>>
6060
{
6161
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
62-
writeln!(f, "BaseNaiveBayes: {{\n distribution: {}}}", self.distribution)?;
62+
writeln!(
63+
f,
64+
"BaseNaiveBayes: {{\n distribution: {}}}",
65+
self.distribution
66+
)?;
6367
Ok(())
6468
}
6569
}
6670

6771
impl<T: Number + Ord + Unsigned> fmt::Display for GaussianNBDistribution<T> {
6872
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
69-
writeln!(
70-
f,
71-
"GaussianNBDistribution: {{"
72-
)?;
73+
writeln!(f, "GaussianNBDistribution: {{")?;
7374
writeln!(f, " class_labels: {:?},", self.class_labels)?;
7475
writeln!(f, " class_count: {:?},", self.class_count)?;
7576
writeln!(f, " class_priors: {:?},", self.class_priors)?;

0 commit comments

Comments
 (0)