diff --git a/crates/router/src/services/api.rs b/crates/router/src/services/api.rs index 19d13dbe1613..2e8f8d968cad 100644 --- a/crates/router/src/services/api.rs +++ b/crates/router/src/services/api.rs @@ -375,7 +375,8 @@ where let status_code = response .as_ref() .map(|i| { - i.clone().map_or_else(|value| value.status_code, |value| value.status_code) + i.clone() + .map_or_else(|value| value.status_code, |value| value.status_code) }) .unwrap_or_default(); let connector_event = ConnectorEvent::new(