diff --git a/Cargo.toml b/Cargo.toml index 2a74aa7..6ecf7b2 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] -seed = "^0.5.0" +seed = "^0.5.1" wasm-bindgen = "^0.2.50" # For serialization, eg sending requests to a server. Otherwise, not required. diff --git a/src/lib.rs b/src/lib.rs index 4c36ede..fe39cda 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,8 +1,6 @@ use seed::{*, prelude::*}; -// Model - struct Model { pub val: i32, } @@ -16,8 +14,6 @@ impl Default for Model { } -// Update - #[derive(Clone)] enum Msg { Increment, @@ -30,8 +26,6 @@ fn update(msg: Msg, model: &mut Model, _: &mut impl Orders) { } -// View - fn view(model: &Model) -> impl View { button![ simple_ev(Ev::Click, Msg::Increment),