Skip to content

Commit

Permalink
Merge pull request snapview#184 from LukasKalbertodt/master
Browse files Browse the repository at this point in the history
Add `From<ProtocolError>` impl for `Error`
  • Loading branch information
daniel-abramov committed Mar 2, 2021
2 parents f59f20b + 5ce9e7c commit 3721ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Expand Up @@ -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),
Expand Down

0 comments on commit 3721ca8

Please sign in to comment.