@@ -207,7 +207,7 @@ impl Platform<'_> {
207207 ///
208208 /// Prefixes are relative paths with slash-separated components.
209209 // TODO: use `RelativePath` type instead (see #1921), or a trait that helps convert into it.
210- pub fn prefixed < ' a > ( & self , prefix : & ' a RelativePath ) -> std:: io:: Result < LooseThenPacked < ' _ , ' _ > > {
210+ pub fn prefixed ( & self , prefix : & RelativePath ) -> std:: io:: Result < LooseThenPacked < ' _ , ' _ > > {
211211 self . store
212212 . iter_prefixed_packed ( prefix, self . packed . as_ref ( ) . map ( |b| & * * * b) )
213213 }
@@ -376,12 +376,11 @@ impl file::Store {
376376 ///
377377 /// Prefixes are relative paths with slash-separated components.
378378 // TODO: use `RelativePath` type instead (see #1921), or a trait that helps convert into it.
379- pub fn iter_prefixed_packed < ' a , ' s , ' p > (
379+ pub fn iter_prefixed_packed < ' s , ' p > (
380380 & ' s self ,
381- prefix : & ' a RelativePath ,
381+ prefix : & RelativePath ,
382382 packed : Option < & ' p packed:: Buffer > ,
383383 ) -> std:: io:: Result < LooseThenPacked < ' p , ' s > > {
384- let prefix = prefix. into ( ) ;
385384 match self . namespace . as_ref ( ) {
386385 None => {
387386 let git_dir_info = IterInfo :: from_prefix ( self . git_dir ( ) , prefix, self . precompose_unicode ) ?;
@@ -393,7 +392,7 @@ impl file::Store {
393392 }
394393 Some ( namespace) => {
395394 let prefix = namespace. to_owned ( ) . into_namespaced_prefix ( prefix) ;
396- let prefix = prefix. as_bstr ( ) . try_into ( ) . map_err ( |err| std:: io:: Error :: other ( err ) ) ?;
395+ let prefix = prefix. as_bstr ( ) . try_into ( ) . map_err ( std:: io:: Error :: other) ?;
397396 let git_dir_info = IterInfo :: from_prefix ( self . git_dir ( ) , prefix, self . precompose_unicode ) ?;
398397 let common_dir_info = self
399398 . common_dir ( )
0 commit comments