X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=lightning%2Fsrc%2Fln%2Fmsgs.rs;h=203e2426fec9f5a5387526870b8b43c8e3598336;hb=710954f88bc39d58713e982caaad05f4c61d92ed;hp=9007f3f2ea7d59aaa820c0999e5c069be3718935;hpb=d786bfaef27b9e49f71ac5b8bf5a4e02cd484f79;p=rust-lightning diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index 9007f3f2..203e2426 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -985,7 +985,7 @@ impl fmt::Display for DecodeError { DecodeError::InvalidValue => f.write_str("Nonsense bytes didn't map to the type they were interpreted as"), DecodeError::ShortRead => f.write_str("Packet extended beyond the provided bytes"), DecodeError::BadLengthDescriptor => f.write_str("A length descriptor in the packet didn't describe the later data correctly"), - DecodeError::Io(ref e) => e.fmt(f), + DecodeError::Io(ref e) => fmt::Debug::fmt(e, f), DecodeError::UnsupportedCompression => f.write_str("We don't support receiving messages with zlib-compressed fields"), } }