From 3feeca8f4f9e9754e323cac5901421b5011e7318 Mon Sep 17 00:00:00 2001 From: hcaumeil <78665596+hcaumeil@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:10:32 +0200 Subject: [PATCH] variable rename for clarity --- lib/src/router/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/router/mod.rs b/lib/src/router/mod.rs index c5ec6c8ac..9c9a7b1c8 100644 --- a/lib/src/router/mod.rs +++ b/lib/src/router/mod.rs @@ -422,10 +422,10 @@ impl DomainRule { DomainRule::Exact(s) => s.as_bytes() == hostname, DomainRule::Regex(r) => { let start = Instant::now(); - let res = r.is_match(hostname); + let is_a_match = r.is_match(hostname); let now = Instant::now(); time!("regex_matching_time", (now - start).whole_milliseconds()); - res + is_a_match } } } @@ -502,11 +502,11 @@ impl PathRule { } PathRule::Regex(r) => { let start = Instant::now(); - let res = r.is_match(path); + let is_a_match = r.is_match(path); let now = Instant::now(); time!("regex_matching_time", (now - start).whole_milliseconds()); - if res { + if is_a_match { PathRuleResult::Regex } else { PathRuleResult::None