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 {
|
||||
value: false,
|
||||
name: "Important Value",
|
||||
..BoolParam::default()
|
||||
..Default::default()
|
||||
},
|
||||
random_data: RwLock::new(Vec::new()),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue