@@ -144,7 +144,7 @@ impl<T: ObjectStore> ObjectStore for MaybePrefixedStore<T> {
144144 self . inner . get ( & full_path) . await
145145 }
146146
147- async fn get_range ( & self , location : & Path , range : Range < u64 > ) -> Result < Bytes > {
147+ async fn get_range ( & self , location : & Path , range : Range < usize > ) -> Result < Bytes > {
148148 let full_path = self . full_path ( location) ;
149149 self . inner . get_range ( & full_path, range) . await
150150 }
@@ -154,7 +154,7 @@ impl<T: ObjectStore> ObjectStore for MaybePrefixedStore<T> {
154154 self . inner . get_opts ( & full_path, options) . await
155155 }
156156
157- async fn get_ranges ( & self , location : & Path , ranges : & [ Range < u64 > ] ) -> Result < Vec < Bytes > > {
157+ async fn get_ranges ( & self , location : & Path , ranges : & [ Range < usize > ] ) -> Result < Vec < Bytes > > {
158158 let full_path = self . full_path ( location) ;
159159 self . inner . get_ranges ( & full_path, ranges) . await
160160 }
@@ -170,7 +170,7 @@ impl<T: ObjectStore> ObjectStore for MaybePrefixedStore<T> {
170170 self . inner . delete ( & full_path) . await
171171 }
172172
173- fn list ( & self , prefix : Option < & Path > ) -> BoxStream < ' static , Result < ObjectMeta > > {
173+ fn list ( & self , prefix : Option < & Path > ) -> BoxStream < ' _ , Result < ObjectMeta > > {
174174 let prefix = self . full_path ( prefix. unwrap_or ( DEFAULT_PATH . get_or_init ( Path :: default) ) ) ;
175175 let s = self . inner . list ( Some ( & prefix) ) ;
176176 let slf_prefix = self . prefix . clone ( ) ;
@@ -182,7 +182,7 @@ impl<T: ObjectStore> ObjectStore for MaybePrefixedStore<T> {
182182 & self ,
183183 prefix : Option < & Path > ,
184184 offset : & Path ,
185- ) -> BoxStream < ' static , Result < ObjectMeta > > {
185+ ) -> BoxStream < ' _ , Result < ObjectMeta > > {
186186 let offset = self . full_path ( offset) ;
187187 let prefix = self . full_path ( prefix. unwrap_or ( DEFAULT_PATH . get_or_init ( Path :: default) ) ) ;
188188 let s = self . inner . list_with_offset ( Some ( & prefix) , & offset) ;
0 commit comments