From f277644502e10293a977996d742cadc915bd63fd Mon Sep 17 00:00:00 2001 From: ripytide Date: Tue, 18 Apr 2023 17:49:24 +0100 Subject: [PATCH] fix clippy warnings --- src/range_bounds_map.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/range_bounds_map.rs b/src/range_bounds_map.rs index b95bf3f..b1a33ad 100644 --- a/src/range_bounds_map.rs +++ b/src/range_bounds_map.rs @@ -1262,11 +1262,7 @@ where .inner .get_key_value(touching_start_comp(range.start())) .filter(|(_, start_touching_value)| { - if *start_touching_value == value { - true - } else { - false - } + *start_touching_value == value }) .map(|(key, _)| key) .copied() @@ -1276,11 +1272,7 @@ where .inner .get_key_value(touching_end_comp(range.end())) .filter(|(_, start_touching_value)| { - if *start_touching_value == value { - true - } else { - false - } + *start_touching_value == value }) .map(|(key, _)| key) .copied()