Skip to content

Commit 6604fbf

Browse files
committed
Fix rustc and rustdoc errors on nightly
1 parent 63d58a5 commit 6604fbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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) => Debug::fmt(&e, f),
989989
DecodeError::UnsupportedCompression => f.write_str("We don't support receiving messages with zlib-compressed fields"),
990990
}
991991
}

lightning/src/util/events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pub enum Event {
236236
/// Note that this does *not* indicate that all paths for an MPP payment have failed, see
237237
/// [`Event::PaymentFailed`] and [`all_paths_failed`].
238238
///
239-
/// [`all_paths_failed`]: Self::all_paths_failed
239+
/// [`all_paths_failed`]: Self::PaymentPathFailed::all_paths_failed
240240
PaymentPathFailed {
241241
/// The id returned by [`ChannelManager::send_payment`] and used with
242242
/// [`ChannelManager::retry_payment`] and [`ChannelManager::abandon_payment`].

0 commit comments

Comments
 (0)