Remove Display impl, better to use Debug
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user