diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rs index 001bd4fa5b..8f21972d9d 100644 --- a/crates/router/src/core/unified_connector_service.rs +++ b/crates/router/src/core/unified_connector_service.rs @@ -766,7 +766,9 @@ pub fn handle_unified_connector_service_response_for_payment_authorize( let status_code = transformers::convert_connector_service_status_code(response.status_code)?; let router_data_response = - Result::<(PaymentsResponseData, AttemptStatus), ErrorResponse>::foreign_try_from(response.clone())?; + Result::<(PaymentsResponseData, AttemptStatus), ErrorResponse>::foreign_try_from( + response.clone(), + )?; // Populate connector_customer_id from UCS state populate_connector_customer_id_from_ucs_state(router_data, response.state.as_ref()); @@ -774,10 +776,7 @@ pub fn handle_unified_connector_service_response_for_payment_authorize( // Populate connector_response from UCS response (log errors, don't fail) populate_connector_response_from_ucs(router_data, response.connector_response.as_ref()) .inspect_err(|err| { - router_env::logger::warn!( - "Failed to populate connector_response from UCS: {:?}", - err - ); + router_env::logger::warn!("Failed to populate connector_response from UCS: {:?}", err); }) .ok(); @@ -802,7 +801,9 @@ pub fn handle_unified_connector_service_response_for_payment_register( let status_code = transformers::convert_connector_service_status_code(response.status_code)?; let router_data_response = - Result::<(PaymentsResponseData, AttemptStatus), ErrorResponse>::foreign_try_from(response.clone())?; + Result::<(PaymentsResponseData, AttemptStatus), ErrorResponse>::foreign_try_from( + response.clone(), + )?; // Populate connector_customer_id from UCS state populate_connector_customer_id_from_ucs_state(router_data, response.state.as_ref()); @@ -817,7 +818,9 @@ pub fn handle_unified_connector_service_response_for_payment_repeat( let status_code = transformers::convert_connector_service_status_code(response.status_code)?; let router_data_response = - Result::<(PaymentsResponseData, AttemptStatus), ErrorResponse>::foreign_try_from(response.clone())?; + Result::<(PaymentsResponseData, AttemptStatus), ErrorResponse>::foreign_try_from( + response.clone(), + )?; // Populate connector_customer_id from UCS state populate_connector_customer_id_from_ucs_state(router_data, response.state.as_ref()); @@ -825,10 +828,7 @@ pub fn handle_unified_connector_service_response_for_payment_repeat( // Populate connector_response from UCS response (log errors, don't fail) populate_connector_response_from_ucs(router_data, response.connector_response.as_ref()) .inspect_err(|err| { - router_env::logger::warn!( - "Failed to populate connector_response from UCS: {:?}", - err - ); + router_env::logger::warn!("Failed to populate connector_response from UCS: {:?}", err); }) .ok();