Update dependencies and fix some lints

This commit is contained in:
Daniel García
2019-02-27 17:21:04 +01:00
parent 1eb1502a07
commit 10756b0920
7 changed files with 104 additions and 113 deletions

View File

@@ -230,7 +230,7 @@ pub struct WebSocketUsers {
}
impl WebSocketUsers {
fn send_update(&self, user_uuid: &String, data: &[u8]) -> ws::Result<()> {
fn send_update(&self, user_uuid: &str, data: &[u8]) -> ws::Result<()> {
if let Some(user) = self.map.get(user_uuid) {
for sender in user.iter() {
sender.send(data)?;