Fix clippy warnings.
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user