chore: address Rust 1.88.0 clippy lints (#8498)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2025-07-02 12:13:07 +05:30
committed by GitHub
parent ad29631c53
commit 20b52f11c3
150 changed files with 464 additions and 647 deletions

View File

@ -36,7 +36,7 @@ pub async fn migrate_payment_methods(
mca_ids.as_ref(),
))
.map_err(|err| errors::ApiErrorResponse::InvalidRequestData {
message: format!("error: {:?}", err),
message: format!("error: {err:?}"),
})
.attach_printable("record deserialization failed");
@ -94,10 +94,7 @@ impl MerchantConnectorValidator {
let mca_id =
common_utils::id_type::MerchantConnectorAccountId::wrap(trimmed_id.to_string())
.map_err(|_| errors::ApiErrorResponse::InvalidRequestData {
message: format!(
"Invalid merchant_connector_account_id: {}",
trimmed_id
),
message: format!("Invalid merchant_connector_account_id: {trimmed_id}"),
})?;
result.push(mca_id);
}