diff --git a/examples/wasi_ssr_module/src/main.rs b/examples/wasi_ssr_module/src/main.rs index db23aa927a5..9f34948c583 100644 --- a/examples/wasi_ssr_module/src/main.rs +++ b/examples/wasi_ssr_module/src/main.rs @@ -4,12 +4,10 @@ mod router; use anyhow::Result; - +use router::{switch, Route}; use yew::prelude::*; use yew::{function_component, ServerRenderer}; -use router::{switch, Route}; - #[function_component] fn Content() -> Html { use yew_router::prelude::*; @@ -24,10 +22,8 @@ fn Content() -> Html { #[function_component] fn App() -> Html { - use yew_router::{ - history::{AnyHistory, History, MemoryHistory}, - prelude::*, - }; + use yew_router::history::{AnyHistory, History, MemoryHistory}; + use yew_router::prelude::*; let history = AnyHistory::from(MemoryHistory::new()); history.push("/");