From b50c1cf062ebca3eda1b9597a1b723450d39c49b Mon Sep 17 00:00:00 2001 From: conorbros Date: Fri, 22 Sep 2023 17:10:11 +1000 Subject: [PATCH] fix clippy lints --- shotover/src/transforms/filter.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shotover/src/transforms/filter.rs b/shotover/src/transforms/filter.rs index 65365f247..2e9930e8c 100644 --- a/shotover/src/transforms/filter.rs +++ b/shotover/src/transforms/filter.rs @@ -58,16 +58,16 @@ impl Transform for QueryTypeFilter { .filter_map(|(i, m)| match self.filter { Filter::AllowList(ref allow_list) => { if allow_list.contains(&m.get_query_type()) { - return None; + None } else { - return Some((i, m)); + Some((i, m)) } } Filter::DenyList(ref deny_list) => { if deny_list.contains(&m.get_query_type()) { - return Some((i, m)); + Some((i, m)) } else { - return None; + None } } })