@@ -51,7 +51,7 @@ impl fmt::Display for Suit {
5151 }
5252}
5353
54- impl < ' a > TryFrom < & ' a str > for Suit {
54+ impl TryFrom < & str > for Suit {
5555 type Error = & ' static str ;
5656
5757 fn try_from ( source : & str ) -> Result < Self , Self :: Error > {
@@ -115,7 +115,7 @@ impl PartialOrd for Rank {
115115 }
116116}
117117
118- impl < ' a > TryFrom < & ' a str > for Rank {
118+ impl TryFrom < & str > for Rank {
119119 type Error = & ' static str ;
120120
121121 fn try_from ( source : & str ) -> Result < Self , Self :: Error > {
@@ -160,7 +160,7 @@ impl fmt::Display for Card {
160160 }
161161}
162162
163- impl < ' a > TryFrom < & ' a str > for Card {
163+ impl TryFrom < & str > for Card {
164164 type Error = & ' static str ;
165165
166166 fn try_from ( source : & str ) -> Result < Self , Self :: Error > {
@@ -262,7 +262,7 @@ struct Hand<'a> {
262262 hand_type : PokerHand ,
263263}
264264
265- impl < ' a > Hand < ' a > {
265+ impl Hand < ' _ > {
266266 fn cmp_high_card ( & self , other : & Hand , card : usize ) -> Ordering {
267267 let mut ordering = self . cards [ card]
268268 . rank
@@ -312,13 +312,13 @@ impl<'a> Hand<'a> {
312312 }
313313}
314314
315- impl < ' a > fmt:: Display for Hand < ' a > {
315+ impl fmt:: Display for Hand < ' _ > {
316316 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
317317 write ! ( f, "{}" , self . source)
318318 }
319319}
320320
321- impl < ' a > PartialOrd for Hand < ' a > {
321+ impl PartialOrd for Hand < ' _ > {
322322 fn partial_cmp ( & self , other : & Hand ) -> Option < Ordering > {
323323 Some ( self . hand_type . cmp ( & other. hand_type ) . then_with ( || {
324324 use crate :: PokerHand :: * ;
0 commit comments