chore: enable clippy::trivially_copy_pass_by_ref lint and address it (#6724)

This commit is contained in:
Sanchith Hegde
2024-12-05 20:11:40 +05:30
committed by GitHub
parent e5dde6acc0
commit d17d2fe075
154 changed files with 423 additions and 429 deletions

View File

@ -725,7 +725,7 @@ pub async fn push_metrics_with_update_window_for_success_based_routing(
)?;
let payment_status_attribute =
get_desired_payment_status_for_success_routing_metrics(&payment_attempt.status);
get_desired_payment_status_for_success_routing_metrics(payment_attempt.status);
let first_success_based_connector_label = &success_based_connectors
.labels_with_score
@ -746,7 +746,7 @@ pub async fn push_metrics_with_update_window_for_success_based_routing(
))?;
let outcome = get_success_based_metrics_outcome_for_payment(
&payment_status_attribute,
payment_status_attribute,
payment_connector.to_string(),
first_success_based_connector.to_string(),
);
@ -843,7 +843,7 @@ pub async fn push_metrics_with_update_window_for_success_based_routing(
#[cfg(all(feature = "v1", feature = "dynamic_routing"))]
fn get_desired_payment_status_for_success_routing_metrics(
attempt_status: &common_enums::AttemptStatus,
attempt_status: common_enums::AttemptStatus,
) -> common_enums::AttemptStatus {
match attempt_status {
common_enums::AttemptStatus::Charged
@ -879,7 +879,7 @@ fn get_desired_payment_status_for_success_routing_metrics(
#[cfg(all(feature = "v1", feature = "dynamic_routing"))]
fn get_success_based_metrics_outcome_for_payment(
payment_status_attribute: &common_enums::AttemptStatus,
payment_status_attribute: common_enums::AttemptStatus,
payment_connector: String,
first_success_based_connector: String,
) -> common_enums::SuccessBasedRoutingConclusiveState {