Remove Display impl, better to use Debug

This commit is contained in:
2022-06-13 11:35:08 +02:00
parent 87a64acb83
commit de4b324651
3 changed files with 4 additions and 36 deletions

View File

@@ -1,5 +1,3 @@
use std::fmt;
use crate::{Gaussian, BETA, GAMMA, N_INF};
#[derive(Clone, Copy, Debug)]
@@ -35,13 +33,3 @@ impl Default for Player {
Player::new(Gaussian::default(), BETA, GAMMA, N_INF)
}
}
impl fmt::Display for Player {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"Player({}, beta={:.3}, gamma={:.3})",
self.prior, self.beta, self.gamma
)
}
}