@@ -46,7 +46,7 @@ pub async fn process_message(
4646 )
4747 . await
4848 {
49- warn ! ( "Failed to decode instruction: {}" , err ) ;
49+ warn ! ( "Failed to decode instruction: {err:?}" ) ;
5050 }
5151 }
5252}
@@ -77,7 +77,7 @@ async fn decode_instruction(
7777 . starts_with ( discriminator)
7878 . then_some ( ( discriminator, len) )
7979 } ) {
80- info ! ( "Received InitTransfer on Solana ({})" , signature ) ;
80+ info ! ( "Received InitTransfer on Solana ({signature })" ) ;
8181
8282 let mut payload_data = decoded_data
8383 . get ( offset..)
@@ -123,7 +123,7 @@ async fn decode_instruction(
123123 let Ok ( Ok ( sender) ) = Pubkey :: from_str ( sender) . map ( |sender| {
124124 OmniAddress :: new_from_slice ( ChainKind :: Sol , & sender. to_bytes ( ) )
125125 } ) else {
126- warn ! ( "Failed to parse sender as a pubkey: {:?}" , sender ) ;
126+ warn ! ( "Failed to parse sender as a pubkey: {sender :?}" ) ;
127127 continue ;
128128 } ;
129129
@@ -132,26 +132,24 @@ async fn decode_instruction(
132132 OmniAddress :: new_from_slice ( ChainKind :: Sol , & recipient. to_bytes ( ) )
133133 } )
134134 else {
135- warn ! ( "Failed to parse recipient as a pubkey: {:?}" , sender ) ;
135+ warn ! ( "Failed to parse recipient as a pubkey: {sender :?}" ) ;
136136 continue ;
137137 } ;
138138
139139 let Ok ( token) = Pubkey :: from_str ( token) else {
140- warn ! ( "Failed to parse token as a pubkey: {:?}" , token ) ;
140+ warn ! ( "Failed to parse token as a pubkey: {token :?}" ) ;
141141 continue ;
142142 } ;
143143
144- let Some ( Ok ( sequence) ) = log
145- . split_ascii_whitespace ( )
146- . last ( )
147- . map ( |sequence| sequence. parse ( ) )
144+ let Some ( Ok ( sequence) ) =
145+ log. split_ascii_whitespace ( ) . last ( ) . map ( str:: parse)
148146 else {
149- warn ! ( "Failed to parse sequence number from log: {:?}" , log ) ;
147+ warn ! ( "Failed to parse sequence number from log: {log :?}" ) ;
150148 continue ;
151149 } ;
152150
153151 let Ok ( emitter) = Pubkey :: from_str ( emitter) else {
154- warn ! ( "Failed to parse emitter as a pubkey: {:?}" , emitter ) ;
152+ warn ! ( "Failed to parse emitter as a pubkey: {emitter :?}" ) ;
155153 continue ;
156154 } ;
157155
@@ -185,7 +183,7 @@ async fn decode_instruction(
185183 . into_iter ( )
186184 . find ( |discriminator| decoded_data. starts_with ( discriminator) )
187185 {
188- info ! ( "Received FinTransfer on Solana: {}" , signature ) ;
186+ info ! ( "Received FinTransfer on Solana: {signature}" ) ;
189187
190188 let emitter = if discriminator == & solana. finalize_transfer_discriminator {
191189 account_keys
@@ -211,12 +209,12 @@ async fn decode_instruction(
211209 . last ( )
212210 . map ( std:: string:: ToString :: to_string)
213211 else {
214- warn ! ( "Failed to parse sequence number from log: {:?}" , log ) ;
212+ warn ! ( "Failed to parse sequence number from log: {log :?}" ) ;
215213 continue ;
216214 } ;
217215
218216 let Ok ( sequence) = sequence. parse ( ) else {
219- warn ! ( "Failed to parse sequence as a number: {:?}" , sequence ) ;
217+ warn ! ( "Failed to parse sequence as a number: {sequence :?}" ) ;
220218 continue ;
221219 } ;
222220
@@ -234,7 +232,7 @@ async fn decode_instruction(
234232 }
235233 }
236234 } else if decoded_data. starts_with ( & solana. deploy_token_discriminator ) {
237- info ! ( "Received DeployToken on Solana ({})" , signature ) ;
235+ info ! ( "Received DeployToken on Solana ({signature })" ) ;
238236
239237 if let Some ( OptionSerializer :: Some ( logs) ) =
240238 transaction. clone ( ) . meta . map ( |meta| meta. log_messages )
@@ -246,11 +244,11 @@ async fn decode_instruction(
246244 . last ( )
247245 . map ( std:: string:: ToString :: to_string)
248246 else {
249- warn ! ( "Failed to parse sequence number from log: {:?}" , log ) ;
247+ warn ! ( "Failed to parse sequence number from log: {log :?}" ) ;
250248 continue ;
251249 } ;
252250 let Ok ( sequence) = sequence. parse ( ) else {
253- warn ! ( "Failed to parse sequence as a number: {:?}" , sequence ) ;
251+ warn ! ( "Failed to parse sequence as a number: {sequence :?}" ) ;
254252 continue ;
255253 } ;
256254
0 commit comments