Merge pull request #184 from LukasKalbertodt/master

Add `From<ProtocolError>` impl for `Error`
This commit is contained in:
Daniel Abramov 2021-03-02 18:31:44 +01:00 committed by GitHub
commit 3721ca8d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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),