mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-21 18:53:27 +00:00
Fix mangled error Display impls
These were formatting the literal integer 0 instead of the inner data.
This commit is contained in:
committed by
Dirkjan Ochtman
parent
05ace6a111
commit
799b5bb2b4
@@ -3365,10 +3365,10 @@ pub enum ConnectionError {
|
||||
#[error("{0}")]
|
||||
TransportError(#[from] TransportError),
|
||||
/// The peer's QUIC stack aborted the connection automatically
|
||||
#[error("aborted by peer: {}", 0)]
|
||||
#[error("aborted by peer: {0}")]
|
||||
ConnectionClosed(frame::ConnectionClose),
|
||||
/// The peer closed the connection
|
||||
#[error("closed by peer: {}", 0)]
|
||||
#[error("closed by peer: {0}")]
|
||||
ApplicationClosed(frame::ApplicationClose),
|
||||
/// The peer is unable to continue processing this connection, usually due to having restarted
|
||||
#[error("reset by peer")]
|
||||
|
||||
@@ -304,7 +304,7 @@ pub enum ReadError {
|
||||
/// The peer abandoned transmitting data on this stream.
|
||||
///
|
||||
/// Carries an application-defined error code.
|
||||
#[error("reset by peer: code {}", 0)]
|
||||
#[error("reset by peer: code {0}")]
|
||||
Reset(VarInt),
|
||||
/// The stream has not been opened or was already stopped, finished, or reset
|
||||
#[error("unknown stream")]
|
||||
|
||||
@@ -142,7 +142,7 @@ pub enum WriteError {
|
||||
/// Carries an application-defined error code.
|
||||
///
|
||||
/// [`StreamEvent::Finished`]: crate::StreamEvent::Finished
|
||||
#[error("stopped by peer: code {}", 0)]
|
||||
#[error("stopped by peer: code {0}")]
|
||||
Stopped(VarInt),
|
||||
/// The stream has not been opened or has already been finished or reset
|
||||
#[error("unknown stream")]
|
||||
@@ -170,7 +170,7 @@ pub enum FinishError {
|
||||
/// Carries an application-defined error code.
|
||||
///
|
||||
/// [`StreamEvent::Finished`]: crate::StreamEvent::Finished
|
||||
#[error("stopped by peer: code {}", 0)]
|
||||
#[error("stopped by peer: code {0}")]
|
||||
Stopped(VarInt),
|
||||
/// The stream has not been opened or was already finished or reset
|
||||
#[error("unknown stream")]
|
||||
|
||||
Reference in New Issue
Block a user