mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	chore: enable clippy::trivially_copy_pass_by_ref lint and address it (#6724)
				
					
				
			This commit is contained in:
		| @ -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 { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sanchith Hegde
					Sanchith Hegde