File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1880,15 +1880,15 @@ impl Path {
18801880 /// assert_eq!(path.strip_prefix(prefix), Ok(Path::new("haha/foo.txt")));
18811881 /// ```
18821882 #[ stable( since = "1.7.0" , feature = "path_strip_prefix" ) ]
1883- pub fn strip_prefix < ' a , P > ( & ' a self , base : P )
1884- -> Result < & ' a Path , StripPrefixError >
1883+ pub fn strip_prefix < P > ( & self , base : P )
1884+ -> Result < & Path , StripPrefixError >
18851885 where P : AsRef < Path >
18861886 {
18871887 self . _strip_prefix ( base. as_ref ( ) )
18881888 }
18891889
1890- fn _strip_prefix < ' a > ( & ' a self , base : & Path )
1891- -> Result < & ' a Path , StripPrefixError > {
1890+ fn _strip_prefix ( & self , base : & Path )
1891+ -> Result < & Path , StripPrefixError > {
18921892 iter_after ( self . components ( ) , base. components ( ) )
18931893 . map ( |c| c. as_path ( ) )
18941894 . ok_or ( StripPrefixError ( ( ) ) )
You can’t perform that action at this time.
0 commit comments