From 9e1b35bbef48dd40242762354d61d9c9b7f376fc Mon Sep 17 00:00:00 2001 From: DavidOConnor Date: Sun, 21 Apr 2019 19:58:19 -0400 Subject: [PATCH] Updated for v0.3.2 --- Cargo.toml | 6 +++--- src/lib.rs | 10 ++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0eac9ec..a2c0d06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,9 +10,9 @@ crate-type = ["cdylib"] [dependencies] -seed = "^0.3.1" -wasm-bindgen = "^0.2.40" -web-sys = "^0.3.17" +seed = "^0.3.2" +wasm-bindgen = "^0.2.42" +web-sys = "^0.3.19" # For serialization, eg sending requests to a server. Otherwise, not required. serde = { version = "^1.0.85", features = ['derive'] } diff --git a/src/lib.rs b/src/lib.rs index 952e4b5..4b8d8ed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,12 +35,10 @@ fn update(msg: Msg, model: &mut Model) -> Update { // View -fn view(model: &Model) -> Vec> { - vec![ - button![ - simple_ev(Ev::Click, Msg::Increment), - format!("Hello, World × {}", model.val) - ] +fn view(model: &Model) -> El { + button![ + simple_ev(Ev::Click, Msg::Increment), + format!("Hello, World × {}", model.val) ] }