fix: remove redundant commas and improve code formatting #179
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Fixed redundant commas and formatting inconsistencies across the codebase:
gw_filter_new.rsgateway_scoring_service.rsgw_filter_new.rsFiles Modified:
1.
src/decider/gatewaydecider/gw_filter_new.rsPaymentFlow::CVVLESS,).await;→PaymentFlow::CVVLESS).await;filterGatewaysForTxnDetailType(this: &mut DeciderFlow<'_>,)→filterGatewaysForTxnDetailType(this: &mut DeciderFlow<'_>)filterGatewaysForReward(this: &mut DeciderFlow<'_>,)→filterGatewaysForReward(this: &mut DeciderFlow<'_>)filterGatewaysForCash(this: &mut DeciderFlow<'_>,)→filterGatewaysForCash(this: &mut DeciderFlow<'_>)filterFunctionalGatewaysForSplitSettlement(this: &mut DeciderFlow<'_>,)→filterFunctionalGatewaysForSplitSettlement(this: &mut DeciderFlow<'_>)log_final_functional_gateways(this: &mut DeciderFlow<'_>,)→log_final_functional_gateways(this: &mut DeciderFlow<'_>)filterGatewaysForPaymentMethod(this: &mut DeciderFlow<'_>,)→filterGatewaysForPaymentMethod(this: &mut DeciderFlow<'_>)2.
src/feedback/gateway_scoring_service.rsmatch (gateway_scoring_type)→match gateway_scoring_type(GatewayScoringType::Penalise)→GatewayScoringType::Penalise(GatewayScoringType::PenaliseSrv3)→GatewayScoringType::PenaliseSrv3(GatewayScoringType::Reward)→GatewayScoringType::Reward3.
src/feedback/utils.rs(MandateTxnType::Default)→MandateTxnType::Default4.
src/decider/gatewaydecider/flow_new.rscargo fmtchanges)Summary:
Additional Changes
Motivation and Context
Fixes: #149
Addresses formatting issues that reduce code clarity and create inconsistent diffs. These style improvements enhance
maintainability and follow Rust best practices for clean, readable code.
How did you test it?
cargo clippyto ensure no linting warningscargo fmt --checkto verify consistent formattingChecklist
cargo +nightly fmt --allcargo clippy