mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	refactor(errors): error enums to use 'static str (#472)
This commit is contained in:
		| @ -7,11 +7,11 @@ use crate::{ | ||||
| }; | ||||
|  | ||||
| pub fn missing_field_err( | ||||
|     message: &str, | ||||
|     message: &'static str, | ||||
| ) -> Box<dyn Fn() -> error_stack::Report<errors::ConnectorError> + '_> { | ||||
|     Box::new(|| { | ||||
|     Box::new(move || { | ||||
|         errors::ConnectorError::MissingRequiredField { | ||||
|             field_name: message.to_string(), | ||||
|             field_name: message, | ||||
|         } | ||||
|         .into() | ||||
|     }) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Narayan Bhat
					Narayan Bhat