diff --git a/Cargo.toml b/Cargo.toml index 5e8ecac..0eac9ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,9 +10,9 @@ crate-type = ["cdylib"] [dependencies] -seed = "^0.3.0" -wasm-bindgen = "^0.2.37" -web-sys = "^0.3.6" +seed = "^0.3.1" +wasm-bindgen = "^0.2.40" +web-sys = "^0.3.17" # 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 0124c9b..952e4b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,10 +35,12 @@ fn update(msg: Msg, model: &mut Model) -> Update { // View -fn view(model: &Model) -> El { - button![ - simple_ev(Ev::Click, Msg::Increment), - format!("Hello, World × {}", model.val) +fn view(model: &Model) -> Vec> { + vec![ + button![ + simple_ev(Ev::Click, Msg::Increment), + format!("Hello, World × {}", model.val) + ] ] }