Skip to content

Commit

Permalink
Make MissingConnectionUpgrade public (#653) (#654)
Browse files Browse the repository at this point in the history
Co-authored-by: Billy Main <[email protected]>
  • Loading branch information
wmain and wmain authored Jul 17, 2020
1 parent 3e7ed49 commit c051a08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filters/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,9 @@ impl Into<Vec<u8>> for Message {

// ===== Rejections =====

/// Connection header did not include 'upgrade'
#[derive(Debug)]
pub(crate) struct MissingConnectionUpgrade;
pub struct MissingConnectionUpgrade;

impl ::std::fmt::Display for MissingConnectionUpgrade {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
Expand Down

0 comments on commit c051a08

Please sign in to comment.