diff --git a/leptos/src/transition.rs b/leptos/src/transition.rs index 948a389e1..c44a667bb 100644 --- a/leptos/src/transition.rs +++ b/leptos/src/transition.rs @@ -119,9 +119,7 @@ where if is_first_run(&first_run, &suspense_context) { let has_local_only = suspense_context.has_local_only(); *prev_children.borrow_mut() = Some(frag.nodes.clone()); - if (has_local_only && child_runs.get() > 0) - || !has_local_only - { + if !has_local_only || child_runs.get() > 0 { first_run.set(false); } } diff --git a/router/src/matching/resolve_path.rs b/router/src/matching/resolve_path.rs index 3037511fb..271ac712c 100644 --- a/router/src/matching/resolve_path.rs +++ b/router/src/matching/resolve_path.rs @@ -52,7 +52,7 @@ fn has_scheme(path: &str) -> bool { #[doc(hidden)] fn normalize(path: &str, omit_slash: bool) -> Cow<'_, str> { let s = path.trim_start_matches('/').trim_end_matches('/'); - if s.is_empty() || omit_slash || begins_with_query_or_hash(&s) { + if s.is_empty() || omit_slash || begins_with_query_or_hash(s) { s.into() } else { format!("/{s}").into()