Skip to content

Commit 2c69e05

Browse files
committed
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.
1 parent 2e343e7 commit 2c69e05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/msgs.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ pub enum DecodeError {
6666
/// A length descriptor in the packet didn't describe the later data correctly
6767
BadLengthDescriptor,
6868
/// Error from std::io
69-
Io(/// (C-not exported) as ErrorKind doesn't have a reasonable mapping
70-
io::ErrorKind),
69+
Io(io::ErrorKind),
7170
/// The message included zlib-compressed values, which we don't support.
7271
UnsupportedCompression,
7372
}

0 commit comments

Comments
 (0)