diff options
Diffstat (limited to 'frontend/src/main.rs')
-rw-r--r-- | frontend/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/main.rs b/frontend/src/main.rs index 95b52e5..fd5ef3c 100644 --- a/frontend/src/main.rs +++ b/frontend/src/main.rs @@ -13,7 +13,7 @@ enum Route { OSSESearch { query: String }, } -fn switch_routes(routes: &Route) -> Html { +fn switch_routes(routes: Route) -> Html { match routes { Route::OSSEHome => html! { <OSSE api_endpoint={"http://127.0.0.1:4444"}/> @@ -29,12 +29,12 @@ fn yew_app() -> Html { html! { <> <BrowserRouter> - <Switch<Route> render={Switch::render(switch_routes)} /> + <Switch<Route> render={switch_routes} /> </BrowserRouter> </> } } fn main() { - yew::start_app::<App>(); + yew::Renderer::<App>::new().render(); } |