@@ -394,7 +394,7 @@ pub fn decode_form_urlencoded(s: &[u8])
394
394
}
395
395
}
396
396
397
- fn split_char_first < ' a > ( s : & ' a str , c : char ) -> ( & ' a str , & ' a str ) {
397
+ fn split_char_first ( s : & str , c : char ) -> ( & str , & str ) {
398
398
let mut iter = s. splitn ( c, 1 ) ;
399
399
400
400
match ( iter. next ( ) , iter. next ( ) ) {
@@ -466,7 +466,7 @@ pub fn query_to_str(query: &Query) -> String {
466
466
/// };
467
467
/// println!("Scheme in use: {}.", scheme); // Scheme in use: https.
468
468
/// ```
469
- pub fn get_scheme < ' a > ( rawurl : & ' a str ) -> DecodeResult < ( & ' a str , & ' a str ) > {
469
+ pub fn get_scheme ( rawurl : & str ) -> DecodeResult < ( & str , & str ) > {
470
470
for ( i, c) in rawurl. chars ( ) . enumerate ( ) {
471
471
let result = match c {
472
472
'A' .. 'Z'
@@ -493,8 +493,8 @@ pub fn get_scheme<'a>(rawurl: &'a str) -> DecodeResult<(&'a str, &'a str)> {
493
493
}
494
494
495
495
// returns userinfo, host, port, and unparsed part, or an error
496
- fn get_authority < ' a > ( rawurl : & ' a str ) ->
497
- DecodeResult < ( Option < UserInfo > , & ' a str , Option < u16 > , & ' a str ) > {
496
+ fn get_authority ( rawurl : & str ) ->
497
+ DecodeResult < ( Option < UserInfo > , & str , Option < u16 > , & str ) > {
498
498
enum State {
499
499
Start , // starting state
500
500
PassHostPort , // could be in user or port
@@ -662,8 +662,7 @@ fn get_authority<'a>(rawurl: &'a str) ->
662
662
663
663
664
664
// returns the path and unparsed part of url, or an error
665
- fn get_path < ' a > ( rawurl : & ' a str , is_authority : bool )
666
- -> DecodeResult < ( String , & ' a str ) > {
665
+ fn get_path ( rawurl : & str , is_authority : bool ) -> DecodeResult < ( String , & str ) > {
667
666
let len = rawurl. len ( ) ;
668
667
let mut end = len;
669
668
for ( i, c) in rawurl. chars ( ) . enumerate ( ) {
0 commit comments