Skip to content

Commit

Permalink
Update compactmap dep
Browse files Browse the repository at this point in the history
  • Loading branch information
vi committed Nov 15, 2017
1 parent 10517fe commit 53474a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tokio-core = "0.1"
tokio-io = "0.1"
websocket = { version = "0.20", default-features = false, features = ["async"]}
#take_mut = "0.2"
compactmap = "^0.2.1"
compactmap = "0.3"
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn serve_client(handle: Handle, client: UsualClient, all:AllClients) -> Result<(
}
}

if let Some(snd) = all.borrow_mut().take(my_id) {
if let Some(snd) = all.borrow_mut().remove(my_id) {
if let Ok(snd) = Rc::try_unwrap(snd) {
let _ = snd.into_inner().send(OwnedMessage::Close(None)).poll();
}
Expand Down

0 comments on commit 53474a7

Please sign in to comment.