Skip to content

Commit

Permalink
chore: clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prajjwalkumar17 committed Jan 18, 2024
1 parent 471482a commit cb1f18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/src/core/errors/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl ErrorSwitch<api_models::errors::types::ApiErrorResponse> for ApiErrorRespon
message,
reason,
..
} => AER::GenericError(ApiError::new("HE", 3, format!("{message}"), Some(Extra { reason: Some(reason.clone()), ..Default::default() }))),
} => AER::GenericError(ApiError::new("HE", 3, message, Some(Extra { reason: Some(reason.clone()), ..Default::default() }))),
Self::SuccessfulPaymentNotFound => {
AER::NotFound(ApiError::new("HE", 4, "Successful payment not found for the given payment id", None))
}
Expand Down

0 comments on commit cb1f18f

Please sign in to comment.