From fd832ce7a3660bd81b5476477ecdc2bc822df5c2 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 26 Sep 2025 20:15:48 +0200 Subject: chore: Second version --- src/lib.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') 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 { - + }>