From 3f1971bb32ae7e23eeefb62cf34f33f3b48e2dd5 Mon Sep 17 00:00:00 2001 From: "hyperswitch-bot[bot]" <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 09:31:48 +0000 Subject: [PATCH] chore: run formatter --- crates/router/src/connector/utils.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/crates/router/src/connector/utils.rs b/crates/router/src/connector/utils.rs index 1b04a2dcd2e2..093e4f0552a5 100644 --- a/crates/router/src/connector/utils.rs +++ b/crates/router/src/connector/utils.rs @@ -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}; @@ -1617,13 +1615,16 @@ impl AccessPaymentAttemptInfo for PaymentAttempt { } pub trait PaymentsAttemptData { - fn get_browser_info(&self) -> Result>; + fn get_browser_info(&self) + -> Result>; } impl PaymentsAttemptData for PaymentAttempt { - fn get_browser_info(&self) -> Result> { + fn get_browser_info( + &self, + ) -> Result> { self.browser_info - .clone() + .clone() .ok_or(ApiErrorResponse::InvalidDataValue { field_name: "browser_info", })?