From dbfa1f0ac8bae940689be3f811310f432f72c135 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 4 Mar 2018 10:44:41 -0800 Subject: [PATCH] fix example --- examples/websocket/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/websocket/src/client.rs b/examples/websocket/src/client.rs index 5eeb3bc41..34ff24372 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) } }