Merge pull request #1298 from 0x192/master
Implement `Default` for `pure::State`
This commit is contained in:
commit
3042fa2cb6
1 changed files with 6 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue