Skip to content

Commit

Permalink
refactor: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
swangi-kumari committed Dec 23, 2024
1 parent 777948b commit 5ace658
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions crates/router/src/core/payments/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,14 +485,6 @@ pub async fn construct_payment_router_data_for_capture<'a>(
.as_ref()
.map(|description| description.get_string_repr())
.map(ToOwned::to_owned),
// TODO: evaluate why we need to send merchant's return url here
// This should be the return url of application, since application takes care of the redirection
return_url: payment_data
.payment_intent
.return_url
.as_ref()
.map(|description| description.get_string_repr())
.map(ToOwned::to_owned),
// TODO: Create unified address
address: hyperswitch_domain_models::payment_address::PaymentAddress::default(),
auth_type: payment_data.payment_attempt.authentication_type,
Expand Down
1 change: 0 additions & 1 deletion crates/router/src/core/relay/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ pub async fn construct_relay_refund_router_data<'a, F>(
payment_method: common_enums::PaymentMethod::default(),
connector_auth_type,
description: None,
return_url: None,
address: hyperswitch_domain_models::payment_address::PaymentAddress::default(),
auth_type: common_enums::AuthenticationType::default(),
connector_meta_data: None,
Expand Down

0 comments on commit 5ace658

Please sign in to comment.