mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
chore: address Rust 1.87.0 clippy lints (#8130)
This commit is contained in:
@ -14,7 +14,7 @@ pub enum KgraphError {
|
||||
#[error("There was an error constructing the graph: {0}")]
|
||||
GraphConstructionError(hyperswitch_constraint_graph::GraphError<dir::DirValue>),
|
||||
#[error("There was an error constructing the context")]
|
||||
ContextConstructionError(AnalysisErrorType),
|
||||
ContextConstructionError(Box<AnalysisErrorType>),
|
||||
#[error("there was an unprecedented indexing error")]
|
||||
IndexingError,
|
||||
}
|
||||
|
||||
@ -168,7 +168,7 @@ impl IntoDirValue for (api_enums::PaymentMethodType, api_enums::PaymentMethod) {
|
||||
| api_enums::PaymentMethod::Voucher
|
||||
| api_enums::PaymentMethod::OpenBanking
|
||||
| api_enums::PaymentMethod::GiftCard => Err(KgraphError::ContextConstructionError(
|
||||
AnalysisErrorType::NotSupported,
|
||||
Box::new(AnalysisErrorType::NotSupported),
|
||||
)),
|
||||
},
|
||||
api_enums::PaymentMethodType::Bacs => match self.1 {
|
||||
@ -187,7 +187,7 @@ impl IntoDirValue for (api_enums::PaymentMethodType, api_enums::PaymentMethod) {
|
||||
| api_enums::PaymentMethod::Voucher
|
||||
| api_enums::PaymentMethod::OpenBanking
|
||||
| api_enums::PaymentMethod::GiftCard => Err(KgraphError::ContextConstructionError(
|
||||
AnalysisErrorType::NotSupported,
|
||||
Box::new(AnalysisErrorType::NotSupported),
|
||||
)),
|
||||
},
|
||||
api_enums::PaymentMethodType::Becs => Ok(dirval!(BankDebitType = Becs)),
|
||||
|
||||
Reference in New Issue
Block a user