Skip to content

Commit

Permalink
chore: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperswitch-bot[bot] committed Nov 29, 2023
1 parent 53a6ead commit 3f1971b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions crates/router/src/connector/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ use api_models::{
enums::{CanadaStatesAbbreviation, UsStatesAbbreviation},
payments::{self, BankDebitBilling, OrderDetailsWithAmount},
};

use data_models::payments::payment_attempt::PaymentAttempt;

use base64::Engine;
use common_utils::{
date_time,
errors::ReportSwitchExt,
pii::{self, Email, IpAddress},
};
use data_models::payments::payment_attempt::PaymentAttempt;
use diesel_models::enums;
use error_stack::{report, IntoReport, ResultExt};
use masking::{ExposeInterface, Secret};
Expand Down Expand Up @@ -1617,13 +1615,16 @@ impl AccessPaymentAttemptInfo for PaymentAttempt {
}

pub trait PaymentsAttemptData {
fn get_browser_info(&self) -> Result<BrowserInformation, error_stack::Report<ApiErrorResponse>>;
fn get_browser_info(&self)
-> Result<BrowserInformation, error_stack::Report<ApiErrorResponse>>;
}

impl PaymentsAttemptData for PaymentAttempt {
fn get_browser_info(&self) -> Result<BrowserInformation, error_stack::Report<ApiErrorResponse>> {
fn get_browser_info(
&self,
) -> Result<BrowserInformation, error_stack::Report<ApiErrorResponse>> {
self.browser_info
.clone()
.clone()
.ok_or(ApiErrorResponse::InvalidDataValue {
field_name: "browser_info",
})?
Expand Down

0 comments on commit 3f1971b

Please sign in to comment.