chore: address Rust 1.78 clippy lints (#4545)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2024-05-07 16:05:32 +05:30
committed by GitHub
parent 99bbc3982f
commit 2216a88d25
222 changed files with 1138 additions and 1631 deletions

View File

@ -99,7 +99,7 @@ pub mod error_parser {
}
pub fn custom_json_error_handler(err: JsonPayloadError, _req: &HttpRequest) -> Error {
actix_web::error::Error::from(CustomJsonError { err })
Error::from(CustomJsonError { err })
}
}
@ -565,14 +565,14 @@ pub fn add_connector_http_status_code_metrics(option_status_code: Option<u16>) {
pub trait CustomerAddress {
async fn get_address_update(
&self,
address_details: api_models::payments::AddressDetails,
address_details: payments::AddressDetails,
key: &[u8],
storage_scheme: storage::enums::MerchantStorageScheme,
) -> CustomResult<storage::AddressUpdate, common_utils::errors::CryptoError>;
async fn get_domain_address(
&self,
address_details: api_models::payments::AddressDetails,
address_details: payments::AddressDetails,
merchant_id: &str,
customer_id: &str,
key: &[u8],
@ -584,7 +584,7 @@ pub trait CustomerAddress {
impl CustomerAddress for api_models::customers::CustomerRequest {
async fn get_address_update(
&self,
address_details: api_models::payments::AddressDetails,
address_details: payments::AddressDetails,
key: &[u8],
storage_scheme: storage::enums::MerchantStorageScheme,
) -> CustomResult<storage::AddressUpdate, common_utils::errors::CryptoError> {
@ -640,7 +640,7 @@ impl CustomerAddress for api_models::customers::CustomerRequest {
async fn get_domain_address(
&self,
address_details: api_models::payments::AddressDetails,
address_details: payments::AddressDetails,
merchant_id: &str,
customer_id: &str,
key: &[u8],