Use Default::default() in the parameter examples
Makes it a bit easier to change between types if needed.
This commit is contained in:
parent
59b70eecae
commit
31481c406b
|
@ -79,7 +79,7 @@ impl Default for GainParams {
|
||||||
the_field_name_can_change: BoolParam {
|
the_field_name_can_change: BoolParam {
|
||||||
value: false,
|
value: false,
|
||||||
name: "Important Value",
|
name: "Important Value",
|
||||||
..BoolParam::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
random_data: RwLock::new(Vec::new()),
|
random_data: RwLock::new(Vec::new()),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue