File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1880,15 +1880,15 @@ impl Path {
1880
1880
/// assert_eq!(path.strip_prefix(prefix), Ok(Path::new("haha/foo.txt")));
1881
1881
/// ```
1882
1882
#[ 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 >
1885
1885
where P : AsRef < Path >
1886
1886
{
1887
1887
self . _strip_prefix ( base. as_ref ( ) )
1888
1888
}
1889
1889
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 > {
1892
1892
iter_after ( self . components ( ) , base. components ( ) )
1893
1893
. map ( |c| c. as_path ( ) )
1894
1894
. ok_or ( StripPrefixError ( ( ) ) )
You can’t perform that action at this time.
0 commit comments