Fix mangled error Display impls

These were formatting the literal integer 0 instead of the inner data.
This commit is contained in:
Benjamin Saunders
2021-02-23 18:59:54 -08:00
committed by Dirkjan Ochtman
parent 05ace6a111
commit 799b5bb2b4
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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")]
+1 -1
View File
@@ -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")]
+2 -2
View File
@@ -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")]