Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Aug 10, 2024
1 parent 014034a commit 2f2c2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/src/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ 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 == "" && 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,
Expand Down

0 comments on commit 2f2c2e8

Please sign in to comment.