chore: address Rust 1.82.0 clippy lints (#6401)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2024-10-24 21:06:07 +05:30
committed by GitHub
parent 8e58b56b43
commit 8708a5cb8f
113 changed files with 668 additions and 647 deletions

View File

@ -64,7 +64,7 @@ pub async fn construct_webhook_router_data<'a>(
request_details: &api::IncomingWebhookRequestDetails<'_>,
) -> CustomResult<types::VerifyWebhookSourceRouterData, errors::ApiErrorResponse> {
let auth_type: types::ConnectorAuthType =
helpers::MerchantConnectorAccountType::DbVal(merchant_connector_account.clone())
helpers::MerchantConnectorAccountType::DbVal(Box::new(merchant_connector_account.clone()))
.get_connector_account_details()
.parse_value("ConnectorAuthType")
.change_context(errors::ApiErrorResponse::InternalServerError)?;