mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-14 15:08:36 +00:00
Use State::default() directly, instead of per-member.
The example is sightly simplified that way, even though showing the `..` notation for struct field initialization is probably a good thing to do as well just for the learning experience.
This commit is contained in:
parent
793e4f9935
commit
c70205501d
@ -87,9 +87,7 @@ impl Default for AutoResizeState {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let mut state = State {
|
||||
.. Default::default()
|
||||
};
|
||||
let mut state = State::default();
|
||||
let mut support = Support::init();
|
||||
let mut opened = true;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user