Skip to content

Commit 7d51506

Browse files
committed
Cleaned up merge conflicts, and v0.2.10 release
2 parents fd0174b + 2e02ed8 commit 7d51506

File tree

5 files changed

+210
-89
lines changed

5 files changed

+210
-89
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ edition = "2018"
1616
crate-type = ["cdylib", "rlib"]
1717

1818
[dev-dependencies]
19-
wasm-bindgen-test = "^0.2.33" # NOTE: keep in sync with wasm-bindgen version
19+
wasm-bindgen-test = "^0.2.37" # NOTE: keep in sync with wasm-bindgen version
2020

2121
[dependencies]
22+
# NOTE: keep in sync with wasm-bindgen-test version
2223
wasm-bindgen = {version = "^0.2.37", features = ["serde-serialize"]}
2324
js-sys = "0.3.6"
2425
console_error_panic_hook = "^0.1.5"

src/dom_types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,11 +1331,11 @@ pub fn will_unmount(mut actions: impl FnMut(&web_sys::Node) + 'static) -> WillUn
13311331

13321332
#[cfg(test)]
13331333
pub mod tests {
1334-
use crate as seed;
1334+
// use crate as seed;
13351335
// required for macros to work.
13361336
// use crate::prelude::*;
1337-
use super::*;
1338-
use crate::{attrs, div, h1, p, section, span};
1337+
// use super::*;
1338+
// use crate::{attrs, div, h1, p, section, span};
13391339
//use wasm_bindgen_test::*; // todo suddenly error about undec type/mod
13401340
//use wasm_bindgen_test::wasm_bindgen_test_configure;
13411341

src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ pub mod tests {
104104
/// This is a minimal app, that should build. Will fail if there's a breaking
105105
/// change.
106106
#[wasm_bindgen_test]
107+
#[allow(dead_code)]
107108
pub fn app_builds() {
108109
use crate as seed; // required for macros to work.
109110
use crate::prelude::*;
110111
use crate::{
111112
div,
112-
dom_types::{El, At, UpdateEl, mouse_ev},
113+
dom_types::{El, UpdateEl, mouse_ev},
113114
vdom::Update,
114115
};
115116

@@ -134,15 +135,15 @@ pub mod tests {
134135
}
135136
}
136137

137-
fn view(_state: seed::App<Msg, Model>, model: &Model) -> El<Msg> {
138+
fn view(_state: seed::App<Msg, Model>, _model: &Model) -> El<Msg> {
138139
div!["Hello world"]
139140
}
140141

141-
fn window_events(model: &Model) -> Vec<seed::dom_types::Listener<Msg>> {
142+
fn window_events(_model: &Model) -> Vec<seed::dom_types::Listener<Msg>> {
142143
vec![mouse_ev("mousemove", |_| Msg::Increment)]
143144
}
144145

145-
fn routes(url: &seed::Url) -> Msg {
146+
fn routes(_url: &seed::Url) -> Msg {
146147
Msg::Increment
147148
}
148149

src/routing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub fn setup_popstate_listener<Ms, Mdl>(app: &App<Ms, Mdl>, routes: fn(&Url) ->
189189

190190
let url: Url = match ev.state().as_string() {
191191
Some(state_str) => serde_json::from_str(&state_str)
192-
.expect("Problem deserialzing popstate state"),
192+
.expect("Problem deserializing popstate state"),
193193
// This might happen if we go back to a page before we started routing. (?)
194194
None => {
195195
let empty: Vec<String> = Vec::new();

0 commit comments

Comments
 (0)