]> git.bitcoin.ninja Git - rust-lightning/commitdiff
f - remove unneeded use of init_tlv_based_struct_field
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 27 Sep 2022 19:47:55 +0000 (14:47 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 27 Sep 2022 22:48:43 +0000 (17:48 -0500)
lightning/src/util/ser_macros.rs

index 374585483615218b8018c784c8fa006d2c28ee46..2f16f145e6771f4c251efc72997fbce5d80d5f97 100644 (file)
@@ -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
                                        ),*
                                })
                        }