From: Matt Corallo Date: Thu, 1 Dec 2022 19:14:43 +0000 (+0000) Subject: Fix `impl_writeable_tlv_based_enum` to not require `DecodeError` X-Git-Tag: v0.0.113~13^2~9 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=fe3cf29595caa9e783aafaf603e1b55c380e4921;p=rust-lightning 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. --- diff --git a/lightning/src/util/ser_macros.rs b/lightning/src/util/ser_macros.rs index 3e1d8a928..caed542c1 100644 --- a/lightning/src/util/ser_macros.rs +++ b/lightning/src/util/ser_macros.rs @@ -679,7 +679,7 @@ macro_rules! impl_writeable_tlv_based_enum { Ok($st::$tuple_variant_name(Readable::read(reader)?)) }),* _ => { - Err(DecodeError::UnknownRequiredFeature) + Err($crate::ln::msgs::DecodeError::UnknownRequiredFeature) }, } }