diff --git a/pure/src/lib.rs b/pure/src/lib.rs index 71d20a4d32..f9f0ae2d54 100644 --- a/pure/src/lib.rs +++ b/pure/src/lib.rs @@ -41,6 +41,12 @@ pub struct State { state_tree: widget::Tree, } +impl Default for State { + fn default() -> Self { + Self::new() + } +} + impl State { pub fn new() -> Self { Self {