diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-26 20:15:48 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-26 20:15:48 +0200 |
| commit | fd832ce7a3660bd81b5476477ecdc2bc822df5c2 (patch) | |
| tree | 245ebcd20b3def57f46e7d28b3f4e551644a1afc /src/lib.rs | |
| parent | chore: Initial Commit (diff) | |
| download | web-client-fd832ce7a3660bd81b5476477ecdc2bc822df5c2.zip | |
chore: Second version
Diffstat (limited to 'src/lib.rs')
| -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 || { |
