From 5ce9e7ca39ab38f9d00aaa22e92683e4c9bf2797 Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Tue, 2 Mar 2021 15:57:44 +0100 Subject: [PATCH] Add `From` impl for `Error` --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index f8f4081..5efc162 100644 --- a/src/error.rs +++ b/src/error.rs @@ -51,7 +51,7 @@ pub enum Error { Capacity(CapacityError), /// Protocol violation. #[error("WebSocket protocol error: {0}")] - Protocol(ProtocolError), + Protocol(#[from] ProtocolError), /// Message send queue full. #[error("Send queue is full")] SendQueueFull(Message),