1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-12-18 01:43:58 +01:00

fix example

This commit is contained in:
Nikolay Kim 2018-03-04 10:44:41 -08:00
parent 11347e3c7d
commit dbfa1f0ac8

View File

@ -88,7 +88,7 @@ impl Handler<ClientCommand> for ChatClient {
type Result = (); type Result = ();
fn handle(&mut self, msg: ClientCommand, ctx: &mut Context<Self>) { fn handle(&mut self, msg: ClientCommand, ctx: &mut Context<Self>) {
self.0.text(msg.0.as_str()) self.0.text(msg.0)
} }
} }