From 17e0b933277a2e9d84cfe2810db921d0f62ad15b Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Tue, 27 Sep 2022 14:47:55 -0500 Subject: [PATCH] f - remove unneeded use of init_tlv_based_struct_field --- lightning/src/util/ser_macros.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lightning/src/util/ser_macros.rs b/lightning/src/util/ser_macros.rs index 374585483..2f16f145e 100644 --- a/lightning/src/util/ser_macros.rs +++ b/lightning/src/util/ser_macros.rs @@ -381,9 +381,6 @@ macro_rules! init_tlv_based_struct_field { ($field: ident, vec_type) => { $field.unwrap() }; - ($field: ident, tlv_record) => { - $field - }; } macro_rules! init_tlv_field_var { @@ -498,7 +495,7 @@ macro_rules! tlv_stream { Ok(Self { $( - $field: init_tlv_based_struct_field!($field, tlv_record) + $field: $field ),* }) } -- 2.39.5