1
0
mirror of https://github.com/actix/examples synced 2025-06-29 02:10:36 +02:00

Fix clippy warnings (#168)

This commit is contained in:
Yuki Okushi
2019-09-05 00:04:57 +09:00
committed by GitHub
parent bb639d5fe3
commit f232b6c684
18 changed files with 41 additions and 46 deletions

View File

@ -171,7 +171,7 @@ impl StreamHandler<ws::Message, ws::ProtocolError> for WsChatSession {
// send message to chat server
self.addr.do_send(server::Message {
id: self.id,
msg: msg,
msg,
room: self.room.clone(),
})
}
@ -212,7 +212,7 @@ impl WsChatSession {
}
fn main() -> std::io::Result<()> {
let _ = env_logger::init();
env_logger::init();
let sys = actix::System::new("websocket-example");
// Start chat server actor