chore: address Rust 1.87.0 clippy lints (#8130)

This commit is contained in:
Gaurav Rawat
2025-05-27 15:31:22 +05:30
committed by GitHub
parent a654695008
commit fab9f5eee5
6 changed files with 11 additions and 10 deletions

View File

@ -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,
}

View File

@ -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)),