@@ -274,7 +274,7 @@ fn passes_bidi(label: &str, is_bidi_domain: bool) -> bool {
274274/// http://www.unicode.org/reports/tr46/#Validity_Criteria
275275fn check_validity ( label : & str , config : Config , errors : & mut Errors ) {
276276 let first_char = label. chars ( ) . next ( ) ;
277- if first_char == None {
277+ if first_char. is_none ( ) {
278278 // Empty string, pass
279279 return ;
280280 }
@@ -475,7 +475,7 @@ impl Idna {
475475
476476 /// http://www.unicode.org/reports/tr46/#ToASCII
477477 #[ allow( clippy:: wrong_self_convention) ]
478- pub fn to_ascii < ' a > ( & ' a mut self , domain : & str , out : & mut String ) -> Result < ( ) , Errors > {
478+ pub fn to_ascii ( & mut self , domain : & str , out : & mut String ) -> Result < ( ) , Errors > {
479479 let mut errors = self . to_ascii_inner ( domain, out) ;
480480
481481 if self . config . verify_dns_length {
@@ -497,7 +497,7 @@ impl Idna {
497497
498498 /// http://www.unicode.org/reports/tr46/#ToUnicode
499499 #[ allow( clippy:: wrong_self_convention) ]
500- pub fn to_unicode < ' a > ( & ' a mut self , domain : & str , out : & mut String ) -> Result < ( ) , Errors > {
500+ pub fn to_unicode ( & mut self , domain : & str , out : & mut String ) -> Result < ( ) , Errors > {
501501 if is_simple ( domain) {
502502 out. push_str ( domain) ;
503503 return Errors :: default ( ) . into ( ) ;
@@ -685,7 +685,7 @@ impl fmt::Debug for Errors {
685685 if !empty {
686686 f. write_str ( ", " ) ?;
687687 }
688- f. write_str ( * name) ?;
688+ f. write_str ( name) ?;
689689 empty = false ;
690690 }
691691 }
0 commit comments