From 887eb99cf6c6e1df7866ab4b16aa5576159c2a57 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sat, 10 Aug 2024 20:31:28 -0400 Subject: [PATCH] chore: cargo fmt --- router/src/link.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/router/src/link.rs b/router/src/link.rs index ff90ea4e3..beffe93bd 100644 --- a/router/src/link.rs +++ b/router/src/link.rs @@ -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,