From f4ee4ed6a1046ca3f7cb74025e37d26d66c2a734 Mon Sep 17 00:00:00 2001 From: Sampras lopes Date: Mon, 22 Jan 2024 14:32:35 +0530 Subject: [PATCH] chore(lints): fix redundant clone --- crates/router/src/services/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/router/src/services/api.rs b/crates/router/src/services/api.rs index 2e8f8d968cad..6e1ef0b3719d 100644 --- a/crates/router/src/services/api.rs +++ b/crates/router/src/services/api.rs @@ -375,7 +375,7 @@ where let status_code = response .as_ref() .map(|i| { - i.clone() + i.as_ref() .map_or_else(|value| value.status_code, |value| value.status_code) }) .unwrap_or_default();