]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add a no-bindings-map comment to `std::io::ErrorKind` in DecodeErr
authorMatt Corallo <git@bluematt.me>
Fri, 19 Feb 2021 18:55:15 +0000 (13:55 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 19 Feb 2021 19:02:46 +0000 (14:02 -0500)
lightning/src/ln/msgs.rs

index 712158a97bc604a39ba173e714e8bbeafbfcd399..2c3e7df717bb09d744abbdf9da86893ed4159a28 100644 (file)
@@ -61,7 +61,8 @@ pub enum DecodeError {
        /// A length descriptor in the packet didn't describe the later data correctly
        BadLengthDescriptor,
        /// Error from std::io
-       Io(::std::io::ErrorKind),
+       Io(/// (C-not exported) as ErrorKind doesn't have a reasonable mapping
+        ::std::io::ErrorKind),
 }
 
 /// An init message to be sent or received from a peer