diff --git a/Cargo.toml b/Cargo.toml index e3c4e1b..96484e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] -seed = "^0.3.3" +seed = "^0.3.4" wasm-bindgen = "^0.2.42" web-sys = "^0.3.19" diff --git a/src/lib.rs b/src/lib.rs index 4b8d8ed..bddcc78 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,11 +25,10 @@ enum Msg { Increment, } -fn update(msg: Msg, model: &mut Model) -> Update { +fn update(msg: Msg, model: &mut Model, _: &mut Orders) { match msg { Msg::Increment => model.val += 1, } - Render.into() }