From 481652a4f8d972b633063158903dbdb0adcf094d Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:52:26 +0000 Subject: [PATCH] Fix latest clippy lints (#5090) --- object_store/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/object_store/src/lib.rs b/object_store/src/lib.rs index 2d1d549f9e54..40dca8f756d2 100644 --- a/object_store/src/lib.rs +++ b/object_store/src/lib.rs @@ -1535,11 +1535,11 @@ mod tests { let expected: Vec<_> = files .iter() - .cloned() .filter(|x| { let prefix_match = prefix.as_ref().map(|p| x.prefix_matches(p)).unwrap_or(true); - prefix_match && x > &offset + prefix_match && *x > &offset }) + .cloned() .collect(); assert_eq!(actual, expected, "{prefix:?} - {offset:?}");