diff --git a/Cargo.toml b/Cargo.toml index 69b7a64..d78a684 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] -seed = "^0.1.12" +seed = "^0.2.0" wasm-bindgen = "^0.2.29" web-sys = "^0.3.6" diff --git a/src/lib.rs b/src/lib.rs index 0d41707..18fc2ad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -36,7 +36,7 @@ fn update(msg: Msg, model: Model) -> Model { // View -fn view(app: seed::App, model: Model) -> El { +fn view(state: seed::App, model: Model) -> El { button![ simple_ev("click", Msg::Increment), format!("Hello, World × {}", model.val)