Skip to content

Commit

Permalink
fix: clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMani committed Nov 21, 2023
1 parent 0840fdf commit 8df40dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/router/src/connector/paypal/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,22 +780,22 @@ pub enum PaypalConnectorCredentials {
impl PaypalConnectorCredentials {
pub fn get_client_id(&self) -> Secret<String> {
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<String> {
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<Secret<String>> {
match self {
PaypalConnectorCredentials::StandardIntegration(_) => None,
PaypalConnectorCredentials::PartnerIntegration(item) => Some(item.payer_id.clone()),
Self::StandardIntegration(_) => None,
Self::PartnerIntegration(item) => Some(item.payer_id.clone()),
}
}

Expand Down

0 comments on commit 8df40dd

Please sign in to comment.