Skip to content

Commit 17e0b93

Browse files
committed
f - remove unneeded use of init_tlv_based_struct_field
1 parent 16606af commit 17e0b93

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lightning/src/util/ser_macros.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,6 @@ macro_rules! init_tlv_based_struct_field {
381381
($field: ident, vec_type) => {
382382
$field.unwrap()
383383
};
384-
($field: ident, tlv_record) => {
385-
$field
386-
};
387384
}
388385

389386
macro_rules! init_tlv_field_var {
@@ -498,7 +495,7 @@ macro_rules! tlv_stream {
498495

499496
Ok(Self {
500497
$(
501-
$field: init_tlv_based_struct_field!($field, tlv_record)
498+
$field: $field
502499
),*
503500
})
504501
}

0 commit comments

Comments
 (0)