1
0
Fork 0

Use Default::default() in the parameter examples

Makes it a bit easier to change between types if needed.
This commit is contained in:
Robbert van der Helm 2022-02-01 20:15:33 +01:00
parent 59b70eecae
commit 31481c406b

View file

@ -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()),
}