From 8df40dd962e3f9e695f394666a6cab191c61dcc5 Mon Sep 17 00:00:00 2001 From: Mani Chandra Dulam Date: Tue, 21 Nov 2023 15:28:49 +0530 Subject: [PATCH] fix: clippy lints --- crates/router/src/connector/paypal/transformers.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/router/src/connector/paypal/transformers.rs b/crates/router/src/connector/paypal/transformers.rs index 3d2424e6d794..d023077ff008 100644 --- a/crates/router/src/connector/paypal/transformers.rs +++ b/crates/router/src/connector/paypal/transformers.rs @@ -780,22 +780,22 @@ pub enum PaypalConnectorCredentials { impl PaypalConnectorCredentials { pub fn get_client_id(&self) -> Secret { match self { - PaypalConnectorCredentials::StandardIntegration(item) => item.client_id.clone(), - PaypalConnectorCredentials::PartnerIntegration(item) => item.client_id.clone(), + Self::StandardIntegration(item) => item.client_id.clone(), + Self::PartnerIntegration(item) => item.client_id.clone(), } } pub fn get_client_secret(&self) -> Secret { match self { - PaypalConnectorCredentials::StandardIntegration(item) => item.client_secret.clone(), - PaypalConnectorCredentials::PartnerIntegration(item) => item.client_secret.clone(), + Self::StandardIntegration(item) => item.client_secret.clone(), + Self::PartnerIntegration(item) => item.client_secret.clone(), } } pub fn get_payer_id(&self) -> Option> { match self { - PaypalConnectorCredentials::StandardIntegration(_) => None, - PaypalConnectorCredentials::PartnerIntegration(item) => Some(item.payer_id.clone()), + Self::StandardIntegration(_) => None, + Self::PartnerIntegration(item) => Some(item.payer_id.clone()), } }