File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ pub struct ProtoStackIter<'a> {
333333 parts : Iter < ' a > ,
334334}
335335
336- impl < ' a > Iterator for ProtoStackIter < ' a > {
336+ impl Iterator for ProtoStackIter < ' _ > {
337337 type Item = & ' static str ;
338338 fn next ( & mut self ) -> Option < Self :: Item > {
339339 self . parts . next ( ) . as_ref ( ) . map ( Protocol :: tag)
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use std::{borrow::Cow, fmt};
44#[ derive( Clone ) ]
55pub struct Onion3Addr < ' a > ( Cow < ' a , [ u8 ; 35 ] > , u16 ) ;
66
7- impl < ' a > Onion3Addr < ' a > {
7+ impl Onion3Addr < ' _ > {
88 /// Return the hash of the public key as bytes
99 pub fn hash ( & self ) -> & [ u8 ; 35 ] {
1010 self . 0 . as_ref ( )
Original file line number Diff line number Diff line change @@ -725,7 +725,7 @@ impl<'a> Protocol<'a> {
725725 }
726726}
727727
728- impl < ' a > fmt:: Display for Protocol < ' a > {
728+ impl fmt:: Display for Protocol < ' _ > {
729729 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
730730 use self :: Protocol :: * ;
731731 write ! ( f, "/{}" , self . tag( ) ) ?;
@@ -788,7 +788,7 @@ impl<'a> fmt::Display for Protocol<'a> {
788788 }
789789}
790790
791- impl < ' a > From < IpAddr > for Protocol < ' a > {
791+ impl From < IpAddr > for Protocol < ' _ > {
792792 #[ inline]
793793 fn from ( addr : IpAddr ) -> Self {
794794 match addr {
@@ -798,14 +798,14 @@ impl<'a> From<IpAddr> for Protocol<'a> {
798798 }
799799}
800800
801- impl < ' a > From < Ipv4Addr > for Protocol < ' a > {
801+ impl From < Ipv4Addr > for Protocol < ' _ > {
802802 #[ inline]
803803 fn from ( addr : Ipv4Addr ) -> Self {
804804 Protocol :: Ip4 ( addr)
805805 }
806806}
807807
808- impl < ' a > From < Ipv6Addr > for Protocol < ' a > {
808+ impl From < Ipv6Addr > for Protocol < ' _ > {
809809 #[ inline]
810810 fn from ( addr : Ipv6Addr ) -> Self {
811811 Protocol :: Ip6 ( addr)
You can’t perform that action at this time.
0 commit comments