Add `From<ProtocolError>` impl for `Error`

pull/184/head
Lukas Kalbertodt 4 years ago
parent f59f20bc80
commit 5ce9e7ca39
No known key found for this signature in database
GPG Key ID: AA5025CF1CC85754
  1. 2
      src/error.rs

@ -51,7 +51,7 @@ pub enum Error {
Capacity(CapacityError), Capacity(CapacityError),
/// Protocol violation. /// Protocol violation.
#[error("WebSocket protocol error: {0}")] #[error("WebSocket protocol error: {0}")]
Protocol(ProtocolError), Protocol(#[from] ProtocolError),
/// Message send queue full. /// Message send queue full.
#[error("Send queue is full")] #[error("Send queue is full")]
SendQueueFull(Message), SendQueueFull(Message),

Loading…
Cancel
Save