Merge pull request #1298 from 0x192/master

Implement `Default` for `pure::State`
This commit is contained in:
Héctor Ramón 2022-04-01 00:41:33 +07:00 committed by GitHub
commit 3042fa2cb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {