Skip to content

Commit 05135ae

Browse files
committed
Fix typo in _encode_tlv leading to confused encoding
1 parent 8b1c771 commit 05135ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lightning/src/util/ser_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ macro_rules! _encode_tlv {
8080
($stream: expr, $type: expr, $field: expr, upgradable_option $(, $self: ident)?) => {
8181
$crate::_encode_tlv!($stream, $type, $field, option);
8282
};
83-
($stream: expr, $type: expr, $field: expr, (option, encoding: ($fieldty: ty, $encoding: ident) $(, $self: ident)?)) => {
83+
($stream: expr, $type: expr, $field: expr, (option, encoding: ($fieldty: ty, $encoding: ident)) $(, $self: ident)?) => {
8484
$crate::_encode_tlv!($stream, $type, $field.as_ref().map(|f| $encoding(f)), option);
8585
};
8686
($stream: expr, $type: expr, $field: expr, (option, encoding: $fieldty: ty) $(, $self: ident)?) => {

0 commit comments

Comments
 (0)