mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: cargo fmt
This commit is contained in:
parent
9f99571b28
commit
887eb99cf6
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,9 @@ fn is_active_for(
|
|||
// with the loc fragment on an emtpy href fragment for non root related parts.
|
||||
std::iter::zip(location.split('/'), href_f.by_ref())
|
||||
.enumerate()
|
||||
.all(|(c, (loc_p, href_p))| loc_p == href_p || href_p.is_empty() && c > 1)
|
||||
.all(|(c, (loc_p, href_p))| {
|
||||
loc_p == href_p || href_p.is_empty() && c > 1
|
||||
})
|
||||
&& match href_f.next() {
|
||||
// when no href fragments remain, location is definitely somewhere nested inside href
|
||||
None => true,
|
||||
|
|
Loading…
Reference in a new issue