From 7cb80b9e86939191da1cb1b583b87c425718dfee Mon Sep 17 00:00:00 2001 From: David O'Connor Date: Sat, 28 Dec 2019 20:01:11 -0500 Subject: [PATCH] Updated for 0.5.1 --- Cargo.toml | 2 +- src/lib.rs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) 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),