Skip to content

Commit fe3cf29

Browse files
committed
Fix impl_writeable_tlv_based_enum to not require DecodeError
`impl_writeable_tlv_based_enum` shouldn't be assuming that `DecodeError` is in scope, which we address here.
1 parent 6c984bf commit fe3cf29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/util/ser_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ macro_rules! impl_writeable_tlv_based_enum {
679679
Ok($st::$tuple_variant_name(Readable::read(reader)?))
680680
}),*
681681
_ => {
682-
Err(DecodeError::UnknownRequiredFeature)
682+
Err($crate::ln::msgs::DecodeError::UnknownRequiredFeature)
683683
},
684684
}
685685
}

0 commit comments

Comments
 (0)