From: Matt Corallo Date: Wed, 26 Oct 2022 21:55:23 +0000 (+0000) Subject: Export io::ErrorKind in bindings X-Git-Tag: v0.0.113~68^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=2c69e05d5c823a35d62539ff365322d8803632c1;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, }