From: Matt Corallo Date: Wed, 26 Oct 2022 21:55:23 +0000 (+0000) Subject: Export io::ErrorKind in bindings X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=94dbde8174d33bde4202e40c1bc21fe8d4b514f3;p=rust-lightning 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. --- 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, }