From eb6db5c5de0db25a5b017e987efb07665c17deac Mon Sep 17 00:00:00 2001 From: Tao Zhu Date: Wed, 6 Mar 2024 01:11:24 +0000 Subject: [PATCH] allow clippy --- cost-model/src/transaction_cost.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cost-model/src/transaction_cost.rs b/cost-model/src/transaction_cost.rs index 931f084829b5f8..76865fff30fd57 100644 --- a/cost-model/src/transaction_cost.rs +++ b/cost-model/src/transaction_cost.rs @@ -18,6 +18,7 @@ pub enum TransactionCost { impl TransactionCost { pub fn sum(&self) -> u64 { + #![allow(clippy::assertions_on_constants)] match self { Self::SimpleVote { .. } => { const _: () = assert!(