Fix clippy warnings.

This commit is contained in:
2020-09-08 15:32:29 +02:00
parent 5aaada0c05
commit a7cb6edbf3
11 changed files with 30 additions and 29 deletions

View File

@@ -28,7 +28,7 @@ pub struct BinaryModel {
impl BinaryModel {
pub fn new(win_obs: BinaryModelObservation) -> Self {
BinaryModel {
storage: Storage::new(),
storage: Storage::default(),
last_t: f64::NEG_INFINITY,
win_obs,
observations: Vec::new(),

View File

@@ -23,7 +23,7 @@ pub struct DifferenceModel {
impl DifferenceModel {
pub fn new(var: f64) -> Self {
DifferenceModel {
storage: Storage::new(),
storage: Storage::default(),
last_t: f64::NEG_INFINITY,
observations: Vec::new(),
_last_method: None,

View File

@@ -30,7 +30,7 @@ pub struct TernaryModel {
impl TernaryModel {
pub fn new(obs: TernaryModelObservation, margin: f64) -> Self {
TernaryModel {
storage: Storage::new(),
storage: Storage::default(),
last_t: f64::NEG_INFINITY,
obs, // default = probit
observations: Vec::new(),