Fix remaining warnings (unrelated)
@@ -6,7 +6,6 @@ use dioxus_core_macro::*;
use dioxus_html as dioxus_elements;
use dioxus_router::*;
use gloo_utils::document;
-use serde::{Deserialize, Serialize};
use wasm_bindgen_test::*;
wasm_bindgen_test_configure!(run_in_browser);
@@ -50,7 +49,7 @@ fn simple_test() {
}
fn BlogPost(cx: Scope) -> Element {
- let id = use_route(&cx).parse_segment::<usize>("id")?;
+ let _id = use_route(&cx).parse_segment::<usize>("id")?;
cx.render(rsx! {
div {
@@ -61,5 +60,5 @@ fn simple_test() {
main();
- let element = gloo_utils::document();
+ let _ = document();
}
