@@ -331,22 +331,22 @@ impl<T: Debug> From<SdkError<T>> for SerialisableAwsSdkError {
331
331
fn from ( err : SdkError < T > ) -> Self {
332
332
match err {
333
333
SdkError :: ConstructionFailure ( err) => SerialisableAwsSdkError :: ConstructionFailure {
334
- message : format ! ( "{:?}" , err ) ,
334
+ message : format ! ( "{err :?}" ) ,
335
335
} ,
336
336
SdkError :: TimeoutError ( err) => SerialisableAwsSdkError :: TimeoutError {
337
- message : format ! ( "{:?}" , err ) ,
337
+ message : format ! ( "{err :?}" ) ,
338
338
} ,
339
339
SdkError :: DispatchFailure ( err) => SerialisableAwsSdkError :: DispatchFailure {
340
- message : format ! ( "{:?}" , err ) ,
340
+ message : format ! ( "{err :?}" ) ,
341
341
} ,
342
342
SdkError :: ResponseError ( err) => SerialisableAwsSdkError :: ResponseError {
343
- message : format ! ( "{:?}" , err ) ,
343
+ message : format ! ( "{err :?}" ) ,
344
344
} ,
345
345
SdkError :: ServiceError ( err) => SerialisableAwsSdkError :: ServiceError {
346
- message : format ! ( "{:?}" , err ) ,
346
+ message : format ! ( "{err :?}" ) ,
347
347
} ,
348
348
_ => SerialisableAwsSdkError :: Other {
349
- message : format ! ( "{:?}" , err ) ,
349
+ message : format ! ( "{err :?}" ) ,
350
350
} ,
351
351
}
352
352
}
@@ -398,11 +398,8 @@ impl From<vault_sdk::error::VaultError> for EngineError {
398
398
message,
399
399
details,
400
400
} => match details {
401
- Some ( details) => format ! (
402
- "Enclave error: {} - {} - details: {}" ,
403
- code, message, details
404
- ) ,
405
- None => format ! ( "Enclave error: {} - {}" , code, message) ,
401
+ Some ( details) => format ! ( "Enclave error: {code} - {message} - details: {details}" ) ,
402
+ None => format ! ( "Enclave error: {code} - {message}" ) ,
406
403
} ,
407
404
_ => err. to_string ( ) ,
408
405
} ;
@@ -536,15 +533,15 @@ impl ContractErrorToEngineError for alloy::contract::Error {
536
533
fn to_engine_error ( self , chain_id : u64 , contract_address : Option < Address > ) -> EngineError {
537
534
let ( message, kind) = match self {
538
535
alloy:: contract:: Error :: UnknownFunction ( name) => (
539
- format ! ( "Unknown function: {}" , name ) ,
536
+ format ! ( "Unknown function: {name}" ) ,
540
537
ContractInteractionErrorKind :: UnknownFunction {
541
538
function_name : name,
542
539
} ,
543
540
) ,
544
541
alloy:: contract:: Error :: UnknownSelector ( selector) => (
545
- format ! ( "Unknown selector: {:?}" , selector ) ,
542
+ format ! ( "Unknown selector: {selector :?}" ) ,
546
543
ContractInteractionErrorKind :: UnknownSelector {
547
- function_selector : format ! ( "{:?}" , selector ) ,
544
+ function_selector : format ! ( "{selector :?}" ) ,
548
545
} ,
549
546
) ,
550
547
alloy:: contract:: Error :: NotADeploymentTransaction => (
@@ -556,26 +553,26 @@ impl ContractErrorToEngineError for alloy::contract::Error {
556
553
ContractInteractionErrorKind :: ContractNotDeployed ,
557
554
) ,
558
555
alloy:: contract:: Error :: ZeroData ( function, err) => (
559
- format ! ( "Zero data returned from contract call to {}" , function ) ,
556
+ format ! ( "Zero data returned from contract call to {function}" ) ,
560
557
ContractInteractionErrorKind :: ZeroData {
561
558
function,
562
559
message : err. to_string ( ) ,
563
560
} ,
564
561
) ,
565
562
alloy:: contract:: Error :: AbiError ( err) => (
566
- format ! ( "ABI error: {}" , err ) ,
563
+ format ! ( "ABI error: {err}" ) ,
567
564
ContractInteractionErrorKind :: AbiError {
568
565
message : err. to_string ( ) ,
569
566
} ,
570
567
) ,
571
568
alloy:: contract:: Error :: TransportError ( err) => (
572
- format ! ( "Transport error: {}" , err ) ,
569
+ format ! ( "Transport error: {err}" ) ,
573
570
ContractInteractionErrorKind :: TransportError {
574
571
message : err. to_string ( ) ,
575
572
} ,
576
573
) ,
577
574
alloy:: contract:: Error :: PendingTransactionError ( err) => (
578
- format ! ( "Pending transaction error: {}" , err ) ,
575
+ format ! ( "Pending transaction error: {err}" ) ,
579
576
ContractInteractionErrorKind :: PendingTransactionError {
580
577
message : err. to_string ( ) ,
581
578
} ,
0 commit comments