diff --git a/examples/websocket/src/client.rs b/examples/websocket/src/client.rs index 5eeb3bc4..34ff2437 100644 --- a/examples/websocket/src/client.rs +++ b/examples/websocket/src/client.rs @@ -88,7 +88,7 @@ impl Handler for ChatClient { type Result = (); fn handle(&mut self, msg: ClientCommand, ctx: &mut Context) { - self.0.text(msg.0.as_str()) + self.0.text(msg.0) } }