@@ -242,12 +242,12 @@ pub enum GetForeignUnspentError {
242242impl fmt:: Display for GetForeignUnspentError {
243243 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
244244 match self {
245- Self :: Coinbase ( err) => write ! ( f, "{}" , err ) ,
246- Self :: FromPsbtInput ( err) => write ! ( f, "{}" , err ) ,
245+ Self :: Coinbase ( err) => write ! ( f, "{err}" ) ,
246+ Self :: FromPsbtInput ( err) => write ! ( f, "{err}" ) ,
247247 Self :: OutputIsAlreadySpent ( op) => {
248- write ! ( f, "outpoint is already spent: {}" , op )
248+ write ! ( f, "outpoint is already spent: {op}" )
249249 }
250- Self :: UtxoMismatch ( op) => write ! ( f, "UTXO mismatch: {}" , op ) ,
250+ Self :: UtxoMismatch ( op) => write ! ( f, "UTXO mismatch: {op}" ) ,
251251 }
252252 }
253253}
@@ -269,9 +269,9 @@ pub enum ExtractReplacementsError {
269269impl fmt:: Display for ExtractReplacementsError {
270270 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
271271 match self {
272- Self :: TransactionNotFound ( txid) => write ! ( f, "transaction not found: {}" , txid ) ,
272+ Self :: TransactionNotFound ( txid) => write ! ( f, "transaction not found: {txid}" ) ,
273273 Self :: CannotReplaceCoinbase => write ! ( f, "cannot replace a coinbase transaction" ) ,
274- Self :: PreviousOutputNotFound ( op) => write ! ( f, "previous output not found: {}" , op ) ,
274+ Self :: PreviousOutputNotFound ( op) => write ! ( f, "previous output not found: {op}" ) ,
275275 }
276276 }
277277}
0 commit comments