From 2c69e05d5c823a35d62539ff365322d8803632c1 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 26 Oct 2022 21:55:23 +0000 Subject: [PATCH] Export io::ErrorKind in bindings The bindings have exported `io::Error` as, basically, `io::ErrorKind`, for quite some time, so there's little reason to not just export `io::ErrorKind` as well. --- lightning/src/ln/msgs.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index 583393395..8b5a6ac6f 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -66,8 +66,7 @@ pub enum DecodeError { /// A length descriptor in the packet didn't describe the later data correctly BadLengthDescriptor, /// Error from std::io - Io(/// (C-not exported) as ErrorKind doesn't have a reasonable mapping - io::ErrorKind), + Io(io::ErrorKind), /// The message included zlib-compressed values, which we don't support. UnsupportedCompression, } -- 2.39.5