diff --git a/Cargo.toml b/Cargo.toml index 2be0bef..2a7056b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ edition = "2018" crate-type = ["cdylib"] [dependencies] -seed = "^0.1.7" +seed = "^0.1.8" wasm-bindgen = "^0.2.29" web-sys = "^0.3.6" diff --git a/src/lib.rs b/src/lib.rs index 806cfea..170ce97 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,7 +27,7 @@ enum Msg { Increment, } -fn update(history: &mut History, msg: Msg, model: Model) -> Model { +fn update(msg: Msg, model: Model) -> Model { match msg { Msg::Increment => Model {val: model.val + 1} }