mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	chore: address Rust 1.80 clippy lints (#5447)
This commit is contained in:
		| @ -28,7 +28,7 @@ pub async fn payment_intents_create( | ||||
|         Err(err) => return api::log_and_return_error_response(err), | ||||
|     }; | ||||
|  | ||||
|     tracing::Span::current().record("payment_id", &payload.id.clone().unwrap_or_default()); | ||||
|     tracing::Span::current().record("payment_id", payload.id.clone().unwrap_or_default()); | ||||
|  | ||||
|     logger::info!(tag = ?Tag::CompatibilityLayerRequest, payload = ?payload); | ||||
|  | ||||
| @ -170,7 +170,7 @@ pub async fn payment_intents_retrieve_with_gateway_creds( | ||||
|         _ => Flow::PaymentsRetrieve, | ||||
|     }; | ||||
|  | ||||
|     tracing::Span::current().record("flow", &flow.to_string()); | ||||
|     tracing::Span::current().record("flow", flow.to_string()); | ||||
|  | ||||
|     let locking_action = payload.get_locking_input(flow.clone()); | ||||
|     Box::pin(wrap::compatibility_api_wrap::< | ||||
| @ -361,7 +361,7 @@ pub async fn payment_intents_capture( | ||||
|         } | ||||
|     }; | ||||
|  | ||||
|     tracing::Span::current().record("payment_id", &stripe_payload.payment_id.clone()); | ||||
|     tracing::Span::current().record("payment_id", stripe_payload.payment_id.clone()); | ||||
|  | ||||
|     logger::info!(tag = ?Tag::CompatibilityLayerRequest, payload = ?stripe_payload); | ||||
|  | ||||
| @ -423,7 +423,7 @@ pub async fn payment_intents_cancel( | ||||
|         } | ||||
|     }; | ||||
|  | ||||
|     tracing::Span::current().record("payment_id", &payment_id.clone()); | ||||
|     tracing::Span::current().record("payment_id", payment_id.clone()); | ||||
|  | ||||
|     logger::info!(tag = ?Tag::CompatibilityLayerRequest, payload = ?stripe_payload); | ||||
|  | ||||
|  | ||||
| @ -26,7 +26,7 @@ pub async fn refund_create( | ||||
|         Err(err) => return api::log_and_return_error_response(err), | ||||
|     }; | ||||
|  | ||||
|     tracing::Span::current().record("payment_id", &payload.payment_intent.clone()); | ||||
|     tracing::Span::current().record("payment_id", payload.payment_intent.clone()); | ||||
|  | ||||
|     logger::info!(tag = ?Tag::CompatibilityLayerRequest, payload = ?payload); | ||||
|  | ||||
| @ -76,7 +76,7 @@ pub async fn refund_retrieve_with_gateway_creds( | ||||
|         _ => Flow::RefundsRetrieve, | ||||
|     }; | ||||
|  | ||||
|     tracing::Span::current().record("flow", &flow.to_string()); | ||||
|     tracing::Span::current().record("flow", flow.to_string()); | ||||
|  | ||||
|     Box::pin(wrap::compatibility_api_wrap::< | ||||
|         _, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Chethan Rao
					Chethan Rao