diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs index 7d58735..357ce93 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,10 @@ clippy::must_use_candidate, reason = "Can't add it to leptos' components" )] +#![expect( + clippy::needless_pass_by_value, + reason = "Can't add it to leptos' components" +)] mod components; mod pages; @@ -20,7 +24,7 @@ use leptos_router::{ }; use rocie_client::apis::configuration::Configuration; -use crate::pages::home::Home; +use crate::pages::{home::Home, not_found::NotFound}; #[component] pub fn App() -> impl IntoView { @@ -31,7 +35,7 @@ pub fn App() -> impl IntoView { let mut config = Configuration::new(); config.user_agent = Some("rocie-mobile".to_owned()); - config.base_path = "http://127.0.0.1:8080".to_owned(); + "http://127.0.0.1:8080".clone_into(&mut config.base_path); Arc::new(config) }; @@ -45,7 +49,7 @@ pub fn App() -> impl IntoView { <Meta name="viewport" content="width=device-width, initial-scale=1.0" /> <Router> - <Routes fallback=|| view! { NotFound }> + <Routes fallback=|| view! { <NotFound /> }> <Route path=path!("/") view=move || { |
