Updated for 0.2.9, including a breaking change to Update

master
DavidOConnor 6 years ago
parent 1439b770a5
commit 6779329f21

@ -10,8 +10,8 @@ crate-type = ["cdylib"]
[dependencies] [dependencies]
seed = "^0.2.7" seed = "^0.2.9"
wasm-bindgen = "^0.2.33" wasm-bindgen = "^0.2.37"
web-sys = "^0.3.6" web-sys = "^0.3.6"
# For serialization, eg sending requests to a server. Otherwise, not required. # For serialization, eg sending requests to a server. Otherwise, not required.

@ -26,7 +26,7 @@ enum Msg {
Increment, Increment,
} }
fn update(msg: Msg, model: Model) -> Update<Model> { fn update(msg: Msg, model: Model) -> Update<Msg, Model> {
match msg { match msg {
Msg::Increment => Render(Model {val: model.val + 1}) Msg::Increment => Render(Model {val: model.val + 1})
} }

Loading…
Cancel
Save