From: Jeffrey Czyz Date: Tue, 27 Sep 2022 19:47:55 +0000 (-0500) Subject: f - remove unneeded use of init_tlv_based_struct_field X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=17e0b933277a2e9d84cfe2810db921d0f62ad15b;p=rust-lightning f - remove unneeded use of init_tlv_based_struct_field --- 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 ),* }) }