@@ -331,22 +331,22 @@ impl<T: Debug> From<SdkError<T>> for SerialisableAwsSdkError {
331331 fn from ( err : SdkError < T > ) -> Self {
332332 match err {
333333 SdkError :: ConstructionFailure ( err) => SerialisableAwsSdkError :: ConstructionFailure {
334- message : format ! ( "{:?}" , err ) ,
334+ message : format ! ( "{err :?}" ) ,
335335 } ,
336336 SdkError :: TimeoutError ( err) => SerialisableAwsSdkError :: TimeoutError {
337- message : format ! ( "{:?}" , err ) ,
337+ message : format ! ( "{err :?}" ) ,
338338 } ,
339339 SdkError :: DispatchFailure ( err) => SerialisableAwsSdkError :: DispatchFailure {
340- message : format ! ( "{:?}" , err ) ,
340+ message : format ! ( "{err :?}" ) ,
341341 } ,
342342 SdkError :: ResponseError ( err) => SerialisableAwsSdkError :: ResponseError {
343- message : format ! ( "{:?}" , err ) ,
343+ message : format ! ( "{err :?}" ) ,
344344 } ,
345345 SdkError :: ServiceError ( err) => SerialisableAwsSdkError :: ServiceError {
346- message : format ! ( "{:?}" , err ) ,
346+ message : format ! ( "{err :?}" ) ,
347347 } ,
348348 _ => SerialisableAwsSdkError :: Other {
349- message : format ! ( "{:?}" , err ) ,
349+ message : format ! ( "{err :?}" ) ,
350350 } ,
351351 }
352352 }
@@ -398,11 +398,8 @@ impl From<vault_sdk::error::VaultError> for EngineError {
398398 message,
399399 details,
400400 } => 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}" ) ,
406403 } ,
407404 _ => err. to_string ( ) ,
408405 } ;
@@ -536,15 +533,15 @@ impl ContractErrorToEngineError for alloy::contract::Error {
536533 fn to_engine_error ( self , chain_id : u64 , contract_address : Option < Address > ) -> EngineError {
537534 let ( message, kind) = match self {
538535 alloy:: contract:: Error :: UnknownFunction ( name) => (
539- format ! ( "Unknown function: {}" , name ) ,
536+ format ! ( "Unknown function: {name}" ) ,
540537 ContractInteractionErrorKind :: UnknownFunction {
541538 function_name : name,
542539 } ,
543540 ) ,
544541 alloy:: contract:: Error :: UnknownSelector ( selector) => (
545- format ! ( "Unknown selector: {:?}" , selector ) ,
542+ format ! ( "Unknown selector: {selector :?}" ) ,
546543 ContractInteractionErrorKind :: UnknownSelector {
547- function_selector : format ! ( "{:?}" , selector ) ,
544+ function_selector : format ! ( "{selector :?}" ) ,
548545 } ,
549546 ) ,
550547 alloy:: contract:: Error :: NotADeploymentTransaction => (
@@ -556,26 +553,26 @@ impl ContractErrorToEngineError for alloy::contract::Error {
556553 ContractInteractionErrorKind :: ContractNotDeployed ,
557554 ) ,
558555 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}" ) ,
560557 ContractInteractionErrorKind :: ZeroData {
561558 function,
562559 message : err. to_string ( ) ,
563560 } ,
564561 ) ,
565562 alloy:: contract:: Error :: AbiError ( err) => (
566- format ! ( "ABI error: {}" , err ) ,
563+ format ! ( "ABI error: {err}" ) ,
567564 ContractInteractionErrorKind :: AbiError {
568565 message : err. to_string ( ) ,
569566 } ,
570567 ) ,
571568 alloy:: contract:: Error :: TransportError ( err) => (
572- format ! ( "Transport error: {}" , err ) ,
569+ format ! ( "Transport error: {err}" ) ,
573570 ContractInteractionErrorKind :: TransportError {
574571 message : err. to_string ( ) ,
575572 } ,
576573 ) ,
577574 alloy:: contract:: Error :: PendingTransactionError ( err) => (
578- format ! ( "Pending transaction error: {}" , err ) ,
575+ format ! ( "Pending transaction error: {err}" ) ,
579576 ContractInteractionErrorKind :: PendingTransactionError {
580577 message : err. to_string ( ) ,
581578 } ,
0 commit comments