@@ -92,14 +92,14 @@ pub enum RawTransactionOutputError {
9292 /// Conversion of the output `value` field failed.
9393 Value ( amount:: ParseAmountError ) ,
9494 /// Conversion of the output `script_pubkey` field failed.
95- ScriptPubkey ( hex:: HexToBytesError ) ,
95+ ScriptPubKey ( hex:: HexToBytesError ) ,
9696}
9797
9898impl fmt:: Display for RawTransactionOutputError {
9999 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
100100 match * self {
101101 Self :: Value ( ref e) => write_err ! ( f, "conversion of the output `value` field failed" ; e) ,
102- Self :: ScriptPubkey ( ref e) =>
102+ Self :: ScriptPubKey ( ref e) =>
103103 write_err ! ( f, "conversion of the output `script_pubkey` field failed" ; e) ,
104104 }
105105 }
@@ -110,7 +110,7 @@ impl std::error::Error for RawTransactionOutputError {
110110 fn source ( & self ) -> Option < & ( dyn std:: error:: Error + ' static ) > {
111111 match * self {
112112 Self :: Value ( ref e) => Some ( e) ,
113- Self :: ScriptPubkey ( ref e) => Some ( e) ,
113+ Self :: ScriptPubKey ( ref e) => Some ( e) ,
114114 }
115115 }
116116}
@@ -121,14 +121,14 @@ pub enum WitnessUtxoError {
121121 /// Conversion of the `amount` field failed.
122122 Amount ( ParseAmountError ) ,
123123 /// Conversion of the `script_pubkey` field failed.
124- ScriptPubkey ( hex:: HexToBytesError ) ,
124+ ScriptPubKey ( hex:: HexToBytesError ) ,
125125}
126126
127127impl fmt:: Display for WitnessUtxoError {
128128 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
129129 match * self {
130130 Self :: Amount ( ref e) => write_err ! ( f, "conversion of the `amount` field failed" ; e) ,
131- Self :: ScriptPubkey ( ref e) =>
131+ Self :: ScriptPubKey ( ref e) =>
132132 write_err ! ( f, "conversion of the `script_pubkey` field failed" ; e) ,
133133 }
134134 }
@@ -139,7 +139,7 @@ impl std::error::Error for WitnessUtxoError {
139139 fn source ( & self ) -> Option < & ( dyn std:: error:: Error + ' static ) > {
140140 match * self {
141141 Self :: Amount ( ref e) => Some ( e) ,
142- Self :: ScriptPubkey ( ref e) => Some ( e) ,
142+ Self :: ScriptPubKey ( ref e) => Some ( e) ,
143143 }
144144 }
145145}
@@ -178,7 +178,7 @@ impl std::error::Error for PartialSignatureError {
178178#[ derive( Debug ) ]
179179pub enum Bip32DerivError {
180180 /// Conversion of the pubkey failed.
181- Pubkey ( key:: ParsePublicKeyError ) ,
181+ PubKey ( key:: ParsePublicKeyError ) ,
182182 /// Conversion of the `master_fingerprint` field failed.
183183 MasterFingerprint ( hex:: HexToArrayError ) ,
184184 /// Conversion of the `path` field failed.
@@ -188,7 +188,7 @@ pub enum Bip32DerivError {
188188impl fmt:: Display for Bip32DerivError {
189189 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
190190 match * self {
191- Self :: Pubkey ( ref e) => write_err ! ( f, "conversion of the pubkey failed" ; e) ,
191+ Self :: PubKey ( ref e) => write_err ! ( f, "conversion of the pubkey failed" ; e) ,
192192 Self :: MasterFingerprint ( ref e) =>
193193 write_err ! ( f, "conversion of the `master_fingerprint` field failed" ; e) ,
194194 Self :: Path ( ref e) => write_err ! ( f, "conversion of the `path` field failed" ; e) ,
@@ -200,7 +200,7 @@ impl fmt::Display for Bip32DerivError {
200200impl std:: error:: Error for Bip32DerivError {
201201 fn source ( & self ) -> Option < & ( dyn std:: error:: Error + ' static ) > {
202202 match * self {
203- Self :: Pubkey ( ref e) => Some ( e) ,
203+ Self :: PubKey ( ref e) => Some ( e) ,
204204 Self :: MasterFingerprint ( ref e) => Some ( e) ,
205205 Self :: Path ( ref e) => Some ( e) ,
206206 }
0 commit comments