Export io::ErrorKind in bindings 2022-10-errorkind-bindings
authorMatt Corallo <git@bluematt.me>
Wed, 26 Oct 2022 21:55:23 +0000 (21:55 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 27 Oct 2022 01:29:05 +0000 (01:29 +0000)
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

index 5833933951100a461b4ba6d38b0aa1ed25758111..8b5a6ac6fd24e32f4ba2dcc25c3715eb86531b30 100644 (file)
@@ -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,
 }