@@ -36,7 +36,8 @@ impl fmt::Display for GetBlockVerboseOneError {
3636 Self :: Hash ( ref e) => write_err ! ( f, "conversion of the `hash` field failed" ; e) ,
3737 Self :: Tx ( ref e) => write_err ! ( f, "conversion of the `tx` field failed" ; e) ,
3838 Self :: Bits ( ref e) => write_err ! ( f, "conversion of the `bits` field failed" ; e) ,
39- Self :: ChainWork ( ref e) => write_err ! ( f, "conversion of the `chain_work` field failed" ; e) ,
39+ Self :: ChainWork ( ref e) =>
40+ write_err ! ( f, "conversion of the `chain_work` field failed" ; e) ,
4041 Self :: PreviousBlockHash ( ref e) =>
4142 write_err ! ( f, "conversion of the `previous_block_hash` field failed" ; e) ,
4243 Self :: NextBlockHash ( ref e) =>
@@ -84,7 +85,8 @@ impl fmt::Display for GetBlockchainInfoError {
8485 Self :: Chain ( ref e) => write_err ! ( f, "conversion of the `chain` field failed" ; e) ,
8586 Self :: BestBlockHash ( ref e) =>
8687 write_err ! ( f, "conversion of the `best_block_hash` field failed" ; e) ,
87- Self :: ChainWork ( ref e) => write_err ! ( f, "conversion of the `chain_work` field failed" ; e) ,
88+ Self :: ChainWork ( ref e) =>
89+ write_err ! ( f, "conversion of the `chain_work` field failed" ; e) ,
8890 }
8991 }
9092}
@@ -118,7 +120,8 @@ impl fmt::Display for GetBlockHeaderError {
118120 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
119121 match * self {
120122 Self :: Hex ( ref e) => write_err ! ( f, "conversion of hex data to bytes failed" ; e) ,
121- Self :: Consensus ( ref e) => write_err ! ( f, "consensus decoding of bytes to header failed" ; e) ,
123+ Self :: Consensus ( ref e) =>
124+ write_err ! ( f, "consensus decoding of bytes to header failed" ; e) ,
122125 }
123126 }
124127}
@@ -157,9 +160,11 @@ impl fmt::Display for GetBlockHeaderVerboseError {
157160 match * self {
158161 Self :: Numeric ( ref e) => write_err ! ( f, "numeric" ; e) ,
159162 Self :: Hash ( ref e) => write_err ! ( f, "conversion of the `hash` field failed" ; e) ,
160- Self :: MerkleRoot ( ref e) => write_err ! ( f, "conversion of the `merkle_root` field failed" ; e) ,
163+ Self :: MerkleRoot ( ref e) =>
164+ write_err ! ( f, "conversion of the `merkle_root` field failed" ; e) ,
161165 Self :: Bits ( ref e) => write_err ! ( f, "conversion of the `bits` field failed" ; e) ,
162- Self :: ChainWork ( ref e) => write_err ! ( f, "conversion of the `chain_work` field failed" ; e) ,
166+ Self :: ChainWork ( ref e) =>
167+ write_err ! ( f, "conversion of the `chain_work` field failed" ; e) ,
163168 Self :: PreviousBlockHash ( ref e) =>
164169 write_err ! ( f, "conversion of the `previous_block_hash` field failed" ; e) ,
165170 Self :: NextBlockHash ( ref e) =>
@@ -200,7 +205,8 @@ impl fmt::Display for GetBlockStatsError {
200205 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
201206 match * self {
202207 Self :: Numeric ( ref e) => write_err ! ( f, "numeric" ; e) ,
203- Self :: BlockHash ( ref e) => write_err ! ( f, "conversion of the `block_hash` field failed" ; e) ,
208+ Self :: BlockHash ( ref e) =>
209+ write_err ! ( f, "conversion of the `block_hash` field failed" ; e) ,
204210 }
205211 }
206212}
@@ -375,7 +381,8 @@ impl fmt::Display for MempoolEntryFeesError {
375381 Self :: Base ( ref e) => write_err ! ( f, "conversion of the `base` field failed" ; e) ,
376382 Self :: Modified ( ref e) => write_err ! ( f, "conversion of the `modified` field failed" ; e) ,
377383 Self :: Ancestor ( ref e) => write_err ! ( f, "conversion of the `ancestor` field failed" ; e) ,
378- Self :: Descendant ( ref e) => write_err ! ( f, "conversion of the `descendant` field failed" ; e) ,
384+ Self :: Descendant ( ref e) =>
385+ write_err ! ( f, "conversion of the `descendant` field failed" ; e) ,
379386 }
380387 }
381388}
@@ -450,7 +457,8 @@ impl fmt::Display for GetTxOutError {
450457 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
451458 match * self {
452459 Self :: Numeric ( ref e) => write_err ! ( f, "numeric" ; e) ,
453- Self :: BestBlock ( ref e) => write_err ! ( f, "conversion of the `beast_block` field failed" ; e) ,
460+ Self :: BestBlock ( ref e) =>
461+ write_err ! ( f, "conversion of the `beast_block` field failed" ; e) ,
454462 Self :: Value ( ref e) => write_err ! ( f, "conversion of the `value` field failed" ; e) ,
455463 Self :: ScriptBuf ( ref e) =>
456464 write_err ! ( f, "conversion of the `ScriptPubkey` hex to a `ScriptBuf` failed" ; e) ,
@@ -492,8 +500,10 @@ impl fmt::Display for GetTxOutSetInfoError {
492500 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
493501 match * self {
494502 Self :: Numeric ( ref e) => write_err ! ( f, "numeric" ; e) ,
495- Self :: BestBlock ( ref e) => write_err ! ( f, "conversion of the `best_block` field failed" ; e) ,
496- Self :: TotalAmount ( ref e) => write_err ! ( f, "conversion of the `total_amount` field failed" ; e) ,
503+ Self :: BestBlock ( ref e) =>
504+ write_err ! ( f, "conversion of the `best_block` field failed" ; e) ,
505+ Self :: TotalAmount ( ref e) =>
506+ write_err ! ( f, "conversion of the `total_amount` field failed" ; e) ,
497507 }
498508 }
499509}
0 commit comments