@@ -295,17 +295,17 @@ impl<'i> Input<'i> {
295295}
296296
297297pub trait Pattern {
298- fn split_prefix < ' i > ( self , input : & mut Input < ' i > ) -> bool ;
298+ fn split_prefix ( self , input : & mut Input ) -> bool ;
299299}
300300
301301impl Pattern for char {
302- fn split_prefix < ' i > ( self , input : & mut Input < ' i > ) -> bool {
302+ fn split_prefix ( self , input : & mut Input ) -> bool {
303303 input. next ( ) == Some ( self )
304304 }
305305}
306306
307307impl < ' a > Pattern for & ' a str {
308- fn split_prefix < ' i > ( self , input : & mut Input < ' i > ) -> bool {
308+ fn split_prefix ( self , input : & mut Input ) -> bool {
309309 for c in self . chars ( ) {
310310 if input. next ( ) != Some ( c) {
311311 return false ;
@@ -316,7 +316,7 @@ impl<'a> Pattern for &'a str {
316316}
317317
318318impl < F : FnMut ( char ) -> bool > Pattern for F {
319- fn split_prefix < ' i > ( self , input : & mut Input < ' i > ) -> bool {
319+ fn split_prefix ( self , input : & mut Input ) -> bool {
320320 input. next ( ) . map_or ( false , self )
321321 }
322322}
@@ -1071,7 +1071,7 @@ impl<'a> Parser<'a> {
10711071 Ok ( ( has_host, host, remaining) )
10721072 }
10731073
1074- pub fn file_host < ' i > ( input : Input < ' i > ) -> ParseResult < ( bool , String , Input < ' i > ) > {
1074+ pub fn file_host ( input : Input ) -> ParseResult < ( bool , String , Input ) > {
10751075 // Undo the Input abstraction here to avoid allocating in the common case
10761076 // where the host part of the input does not contain any tab or newline
10771077 let input_str = input. chars . as_str ( ) ;
0 commit comments