Skip to content

Commit e397bd5

Browse files
committed
fix clippy errors
1 parent 205885a commit e397bd5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ impl TryFrom<&WorldpayvantivRouterData<&PaymentsAuthorizeRouterData>> for CnpOnl
530530
})?
531531
};
532532

533-
let (card, cardholder_authentication) = get_vantiv_card_data(&item)?;
533+
let (card, cardholder_authentication) = get_vantiv_card_data(item)?;
534534
let report_group = item
535535
.router_data
536536
.request
@@ -627,14 +627,11 @@ impl TryFrom<&WorldpayvantivRouterData<&PaymentsAuthorizeRouterData>> for CnpOnl
627627

628628
impl From<&WorldpayvantivRouterData<&PaymentsAuthorizeRouterData>> for OrderSource {
629629
fn from(item: &WorldpayvantivRouterData<&PaymentsAuthorizeRouterData>) -> Self {
630-
if let PaymentMethodData::Wallet(wallet_data) =
631-
&item.router_data.request.payment_method_data
630+
if let PaymentMethodData::Wallet(
631+
hyperswitch_domain_models::payment_method_data::WalletData::ApplePay(_),
632+
) = &item.router_data.request.payment_method_data
632633
{
633-
if let hyperswitch_domain_models::payment_method_data::WalletData::ApplePay(_) =
634-
wallet_data
635-
{
636-
return OrderSource::ApplePay;
637-
}
634+
return Self::ApplePay;
638635
}
639636

640637
match item.router_data.request.payment_channel {

0 commit comments

Comments
 (0)