fix chat example for rust 1.21
@@ -53,7 +53,7 @@ impl Handler<TcpConnect> for Server {
// with out chat server address.
let server = self.chat.clone();
let _: () = ChatSession::create(
- |ctx| ChatSession::new(server, ctx.add_framed(msg.0.framed(ChatCodec))));
+ move |ctx| ChatSession::new(server, ctx.add_framed(msg.0.framed(ChatCodec))));
}
}
