@@ -51,13 +51,13 @@ impl<'h> CoreSearcher<'h> {
51
51
}
52
52
}
53
53
54
- impl < ' h , F > Pattern < ' h > for AsciiChars < F >
54
+ impl < F > Pattern for AsciiChars < F >
55
55
where
56
56
F : Fn ( u8 ) -> bool ,
57
57
{
58
- type Searcher = AsciiCharsSearcher < ' h , F > ;
58
+ type Searcher < ' h > = AsciiCharsSearcher < ' h , F > ;
59
59
60
- fn into_searcher ( self , haystack : & ' h str ) -> Self :: Searcher {
60
+ fn into_searcher ( self , haystack : & str ) -> Self :: Searcher < ' _ > {
61
61
AsciiCharsSearcher {
62
62
searcher : CoreSearcher :: new ( haystack) ,
63
63
finder : self ,
@@ -105,10 +105,10 @@ where
105
105
/// substring to search for is the empty string. It will never
106
106
/// match. This behavior may change in the future to more closely
107
107
/// align with the standard library.
108
- impl < ' n , ' h > Pattern < ' h > for Substring < ' n > {
109
- type Searcher = SubstringSearcher < ' n , ' h > ;
108
+ impl < ' n > Pattern for Substring < ' n > {
109
+ type Searcher < ' h > = SubstringSearcher < ' n , ' h > ;
110
110
111
- fn into_searcher ( self , haystack : & ' h str ) -> Self :: Searcher {
111
+ fn into_searcher ( self , haystack : & str ) -> Self :: Searcher < ' _ > {
112
112
SubstringSearcher {
113
113
searcher : CoreSearcher :: new ( haystack) ,
114
114
finder : self ,
0 commit comments