@@ -27,18 +27,18 @@ use crate::Script;
2727
2828/// ad-hoc struct to fmt in hex
2929struct HexBytes < ' a > ( & ' a [ u8 ] ) ;
30- impl < ' a > fmt:: Display for HexBytes < ' a > {
30+ impl fmt:: Display for HexBytes < ' _ > {
3131 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
3232 crate :: hex:: format_hex ( self . 0 , f)
3333 }
3434}
35- impl < ' a > fmt:: Debug for HexBytes < ' a > {
35+ impl fmt:: Debug for HexBytes < ' _ > {
3636 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
3737 fmt:: Display :: fmt ( & self , f)
3838 }
3939}
4040#[ cfg( feature = "serde" ) ]
41- impl < ' a > Serialize for HexBytes < ' a > {
41+ impl Serialize for HexBytes < ' _ > {
4242 fn serialize < S : Serializer > ( & self , s : S ) -> Result < S :: Ok , S :: Error > {
4343 if s. is_human_readable ( ) {
4444 s. collect_str ( self )
@@ -50,7 +50,7 @@ impl<'a> Serialize for HexBytes<'a> {
5050
5151/// ad-hoc struct to fmt in hex
5252struct HexBytesArray < ' a > ( & ' a [ Vec < u8 > ] ) ;
53- impl < ' a > fmt:: Display for HexBytesArray < ' a > {
53+ impl fmt:: Display for HexBytesArray < ' _ > {
5454 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
5555 write ! ( f, "[" ) ?;
5656 for ( i, e) in self . 0 . iter ( ) . enumerate ( ) {
@@ -62,13 +62,13 @@ impl<'a> fmt::Display for HexBytesArray<'a> {
6262 write ! ( f, "]" )
6363 }
6464}
65- impl < ' a > fmt:: Debug for HexBytesArray < ' a > {
65+ impl fmt:: Debug for HexBytesArray < ' _ > {
6666 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
6767 fmt:: Display :: fmt ( & self , f)
6868 }
6969}
7070#[ cfg( feature = "serde" ) ]
71- impl < ' a > Serialize for HexBytesArray < ' a > {
71+ impl Serialize for HexBytesArray < ' _ > {
7272 fn serialize < S : Serializer > ( & self , s : S ) -> Result < S :: Ok , S :: Error > {
7373 let mut seq = s. serialize_seq ( Some ( self . 0 . len ( ) ) ) ?;
7474 for b in self . 0 {
@@ -420,7 +420,7 @@ impl<'de> Deserialize<'de> for Params {
420420 }
421421 struct EnumVisitor ;
422422
423- impl < ' de > de:: Visitor < ' de > for EnumVisitor {
423+ impl de:: Visitor < ' _ > for EnumVisitor {
424424 type Value = Enum ;
425425
426426 fn expecting ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
0 commit comments