diff --git a/src/lib.rs b/src/lib.rs index c151f97..fde0edf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ use seed::{prelude::*, *}; // `init` describes what should happen when your app started. fn init(_: Url, _: &mut impl Orders) -> Model { - Model::default() + Model { counter: 0 } } // ------ ------ @@ -19,7 +19,6 @@ fn init(_: Url, _: &mut impl Orders) -> Model { // ------ ------ // `Model` describes our app state. -#[derive(Default)] struct Model { counter: i32, }