mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 22:10:01 -04:00
small match statement syntax improvement
This commit is contained in:
parent
b290d3b583
commit
314c1bfa75
1 changed files with 1 additions and 5 deletions
|
@ -194,11 +194,7 @@ impl WebSocketWrite for WebSocketWrapper {
|
|||
return Err(WispError::WsImplSocketClosed);
|
||||
}
|
||||
match frame.opcode {
|
||||
Binary => self
|
||||
.inner
|
||||
.send_with_u8_array(&frame.payload)
|
||||
.map_err(|_| WebSocketError::SendFailed.into()),
|
||||
Text => self
|
||||
Binary | Text => self
|
||||
.inner
|
||||
.send_with_u8_array(&frame.payload)
|
||||
.map_err(|_| WebSocketError::SendFailed.into()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue