From 8535ee9f2a8b34d74b9e6931b85aa7000c903a08 Mon Sep 17 00:00:00 2001 From: Arnon Hod Date: Sun, 27 Oct 2024 10:46:31 +0200 Subject: [PATCH] chore: fix warning in consensus test (#1559) --- crates/papyrus_protobuf/src/converters/consensus_test.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/papyrus_protobuf/src/converters/consensus_test.rs b/crates/papyrus_protobuf/src/converters/consensus_test.rs index 915e541d29..af6c070c2f 100644 --- a/crates/papyrus_protobuf/src/converters/consensus_test.rs +++ b/crates/papyrus_protobuf/src/converters/consensus_test.rs @@ -147,11 +147,8 @@ fn convert_proposal_part_to_vec_u8_and_back() { let mut proposal_part = ProposalPart::get_test_instance(&mut rng); - match proposal_part { - ProposalPart::Transactions(ref mut transaction_batch) => { - add_gas_values_to_transaction(&mut transaction_batch.transactions); - } - _ => {} + if let ProposalPart::Transactions(ref mut transaction_batch) = proposal_part { + add_gas_values_to_transaction(&mut transaction_batch.transactions); } let bytes_data: Vec = proposal_part.clone().into();