Skip to content

Commit

Permalink
Missing custom Display implementation on error (#2902)
Browse files Browse the repository at this point in the history
Right now the `derive_more` library just prints the value of
`notifications_protocol_index` (an integer) when displaying this error,
which is kind of crappy.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
tomaka and mergify[bot] authored Oct 24, 2022
1 parent af3bc9d commit 38beeef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libp2p/peers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2129,6 +2129,7 @@ pub enum InboundError {
Connection(collection::InboundError),
/// Refused a notifications substream because we already have an existing substream of that
/// protocol.
#[display(fmt = "Refused duplicate notifications substream")]
DuplicateNotificationsSubstream {
/// Notifications protocol the substream is about.
notifications_protocol_index: usize,
Expand Down

0 comments on commit 38beeef

Please sign in to comment.