Skip to content

Commit 78c6154

Browse files
committed
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 rust-lang/rust#93599
1 parent d29ae18 commit 78c6154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/msgs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ impl fmt::Display for DecodeError {
985985
DecodeError::InvalidValue => f.write_str("Nonsense bytes didn't map to the type they were interpreted as"),
986986
DecodeError::ShortRead => f.write_str("Packet extended beyond the provided bytes"),
987987
DecodeError::BadLengthDescriptor => f.write_str("A length descriptor in the packet didn't describe the later data correctly"),
988-
DecodeError::Io(ref e) => e.fmt(f),
988+
DecodeError::Io(ref e) => fmt::Debug::fmt(e, f),
989989
DecodeError::UnsupportedCompression => f.write_str("We don't support receiving messages with zlib-compressed fields"),
990990
}
991991
}

0 commit comments

Comments
 (0)