From a1db25a686097c44671b9742de60ab32027e48ed Mon Sep 17 00:00:00 2001 From: DavidOConnor Date: Wed, 19 Dec 2018 20:19:24 -0500 Subject: [PATCH] Modified to support new routing system --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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} }