diff --git a/src/protocol/frame/coding.rs b/src/protocol/frame/coding.rs index 5fde5fb..13d9045 100644 --- a/src/protocol/frame/coding.rs +++ b/src/protocol/frame/coding.rs @@ -183,8 +183,8 @@ pub enum CloseCode { impl CloseCode { /// Check if this CloseCode is allowed. - pub fn is_allowed(&self) -> bool { - match *self { + pub fn is_allowed(self) -> bool { + match self { Bad(_) => false, Reserved(_) => false, Status => false,