Introduce `init_and_read_tlv_fields` macro
authorElias Rohrer <ero@tnull.de>
Tue, 15 Nov 2022 13:57:47 +0000 (14:57 +0100)
committerElias Rohrer <ero@tnull.de>
Tue, 15 Nov 2022 14:10:23 +0000 (15:10 +0100)
commitaa10f6464efa797ccda35d59fef8faac083c3438
tree016f8d10fef574ef14bfe04363a7e1c75f7a9fbc
parent505102dc212df338091d8448c13b06f477170998
Introduce `init_and_read_tlv_fields` macro

We introduce a new macro that inits and reads tlv fields and DRY up
`impl_writeable_tlv_based` and other macros.
lightning/src/util/ser_macros.rs