1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +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

@ -164,7 +164,7 @@ impl StreamHandler<ws::Message, ws::ProtocolError> for WsChatSession {
// send message to chat server
self.addr.do_send(server::ClientMessage {
id: self.id,
msg: msg,
msg,
room: self.room.clone(),
})
}

View File

@ -68,7 +68,7 @@ impl Default for ChatServer {
ChatServer {
sessions: HashMap::new(),
rooms: rooms,
rooms,
rng: rand::thread_rng(),
}
}