diff --git a/object_store/src/lib.rs b/object_store/src/lib.rs index 556ec501b774..6ce803cdb7da 100644 --- a/object_store/src/lib.rs +++ b/object_store/src/lib.rs @@ -1653,9 +1653,9 @@ mod tests { } /// Test that the returned stream does not borrow the lifetime of Path - fn list_store<'a, 'b>( + fn list_store<'a>( store: &'a dyn ObjectStore, - path_str: &'b str, + path_str: &str, ) -> BoxStream<'a, Result> { let path = Path::from(path_str); store.list(Some(&path))