From d2f2d157705a38c6ac6a6abbd56470ac1790b7ab Mon Sep 17 00:00:00 2001 From: RXRD Date: Mon, 9 Oct 2023 17:24:58 +0700 Subject: [PATCH] format fix --- pallets/genetic-analysis-orders/src/types.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pallets/genetic-analysis-orders/src/types.rs b/pallets/genetic-analysis-orders/src/types.rs index f0cf3f07..5ae3ab8b 100644 --- a/pallets/genetic-analysis-orders/src/types.rs +++ b/pallets/genetic-analysis-orders/src/types.rs @@ -126,7 +126,9 @@ where } pub fn can_refunded(self) -> Option { - if (self.status == GeneticAnalysisOrderStatus::Paid || self.status == GeneticAnalysisOrderStatus::Failed) { + if (self.status == GeneticAnalysisOrderStatus::Paid + || self.status == GeneticAnalysisOrderStatus::Failed) + { Some(self) } else { None