mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
chore: address Rust 1.85.0 clippy lints (#7376)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -283,11 +283,7 @@ impl TryFrom<StripePaymentIntentRequest> for payments::PaymentsRequest {
|
||||
type Error = error_stack::Report<errors::ApiErrorResponse>;
|
||||
fn try_from(item: StripePaymentIntentRequest) -> errors::RouterResult<Self> {
|
||||
let routable_connector: Option<api_enums::RoutableConnectors> =
|
||||
item.connector.and_then(|v| {
|
||||
v.into_iter()
|
||||
.next()
|
||||
.map(api_enums::RoutableConnectors::from)
|
||||
});
|
||||
item.connector.and_then(|v| v.into_iter().next());
|
||||
|
||||
let routing = routable_connector
|
||||
.map(|connector| {
|
||||
|
||||
@ -179,11 +179,7 @@ impl TryFrom<StripeSetupIntentRequest> for payments::PaymentsRequest {
|
||||
type Error = error_stack::Report<errors::ApiErrorResponse>;
|
||||
fn try_from(item: StripeSetupIntentRequest) -> errors::RouterResult<Self> {
|
||||
let routable_connector: Option<api_enums::RoutableConnectors> =
|
||||
item.connector.and_then(|v| {
|
||||
v.into_iter()
|
||||
.next()
|
||||
.map(api_enums::RoutableConnectors::from)
|
||||
});
|
||||
item.connector.and_then(|v| v.into_iter().next());
|
||||
|
||||
let routing = routable_connector
|
||||
.map(|connector| {
|
||||
|
||||
Reference in New Issue
Block a user