diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs index 6681560feee6..5a9b43e165a9 100644 --- a/crates/router/src/core/payments.rs +++ b/crates/router/src/core/payments.rs @@ -3192,7 +3192,7 @@ where .change_context(errors::ApiErrorResponse::InternalServerError) .attach_printable("Invalid connector name received in 'routed_through'")?; - routing_data.routed_through = Some(connector_name.clone().to_owned()); + routing_data.routed_through = Some(connector_name.clone()); return Ok(ConnectorCallType::PreDetermined(connector_data)); }