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:?}");