aboutsummaryrefslogtreecommitdiff
path: root/net/src/codec
diff options
context:
space:
mode:
Diffstat (limited to 'net/src/codec')
-rw-r--r--net/src/codec/websocket.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/src/codec/websocket.rs b/net/src/codec/websocket.rs
index b59a55c..8676810 100644
--- a/net/src/codec/websocket.rs
+++ b/net/src/codec/websocket.rs
@@ -19,5 +19,5 @@ pub trait WebSocketEncoder {
pub trait WebSocketDecoder {
type DeItem;
- fn decode(&self, src: &Message) -> Result<Self::DeItem>;
+ fn decode(&self, src: &Message) -> Result<Option<Self::DeItem>>;
}