chore: cargo fmt

This commit is contained in:
Greg Johnston 2024-08-10 20:31:28 -04:00
parent 9f99571b28
commit 887eb99cf6

View file

@ -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,