From fe3cf29595caa9e783aafaf603e1b55c380e4921 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 1 Dec 2022 19:14:43 +0000 Subject: [PATCH] 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. --- lightning/src/util/ser_macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }, } } -- 2.39.5