Modified to support new routing system

master
DavidOConnor 6 years ago
parent c8df7d2c5a
commit a1db25a686

@ -9,7 +9,7 @@ edition = "2018"
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
seed = "^0.1.7" seed = "^0.1.8"
wasm-bindgen = "^0.2.29" wasm-bindgen = "^0.2.29"
web-sys = "^0.3.6" web-sys = "^0.3.6"

@ -27,7 +27,7 @@ enum Msg {
Increment, Increment,
} }
fn update(history: &mut History<Model, Msg>, msg: Msg, model: Model) -> Model { fn update(msg: Msg, model: Model) -> Model {
match msg { match msg {
Msg::Increment => Model {val: model.val + 1} Msg::Increment => Model {val: model.val + 1}
} }

Loading…
Cancel
Save