Skip to content

Commit 4b84092

Browse files
committed
f actually declare a variable for legacy fields so it can be read
1 parent 47d4b0d commit 4b84092

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/util/ser_macros.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,9 @@ macro_rules! _init_tlv_based_struct_field {
818818
($field: ident, option) => {
819819
$field
820820
};
821+
($field: ident, (legacy, $fieldty: ty, $read: expr, $write: expr)) => {
822+
$crate::_init_tlv_based_struct_field!($field, option)
823+
};
821824
($field: ident, (option: $trait: ident $(, $read_arg: expr)?)) => {
822825
$crate::_init_tlv_based_struct_field!($field, option)
823826
};

0 commit comments

Comments
 (0)