From: Matt Corallo Date: Thu, 10 Feb 2022 21:11:59 +0000 (+0000) Subject: Work around rustc compilation regression on nightly X-Git-Tag: v0.0.105~14^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=78c6154d9a50ff9338eac48ba8d469c6268f5510;p=rust-lightning Work around rustc compilation regression on nightly Apparently rustc doesn't (actually) provide any kind of compilation-stability guarantees, despite their claims. Here we work around rustc being unstable by making the trait call explicit. See also https://github.com/rust-lang/rust/issues/93599 --- diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index 9007f3f2e..203e2426f 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"), } }