@ -10,8 +10,8 @@ crate-type = ["cdylib"]
[dependencies]
seed = "^0.2.7"
wasm-bindgen = "^0.2.33"
seed = "^0.2.9"
wasm-bindgen = "^0.2.37"
web-sys = "^0.3.6"
# For serialization, eg sending requests to a server. Otherwise, not required.
@ -26,7 +26,7 @@ enum Msg {
Increment,
}
fn update(msg: Msg, model: Model) -> Update<Model> {
fn update(msg: Msg, model: Model) -> Update<Msg, Model> {
match msg {
Msg::Increment => Render(Model {val: model.val + 1})