Skip to content

Commit

Permalink
Remove Default derive
Browse files Browse the repository at this point in the history
  • Loading branch information
zakaluka authored and MartinKavik committed Apr 3, 2021
1 parent c1a4025 commit 2d1a14d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ use seed::{prelude::*, *};

// `init` describes what should happen when your app started.
fn init(_: Url, _: &mut impl Orders<Msg>) -> Model {
Model::default()
Model { counter: 0 }
}

// ------ ------
// Model
// ------ ------

// `Model` describes our app state.
#[derive(Default)]
struct Model {
counter: i32,
}
Expand Down

0 comments on commit 2d1a14d

Please sign in to comment.