Skip to content

Commit

Permalink
Auto merge of #244 - servo:rand, r=SimonSapin
Browse files Browse the repository at this point in the history
Update rand to 0.7
  • Loading branch information
bors-servo committed Oct 16, 2019
2 parents ca6d860 + 23a5585 commit 59e2ee3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ipc-channel"
version = "0.12.0"
version = "0.12.1"
description = "A multiprocess drop-in replacement for Rust channels"
authors = ["The Servo Project Developers"]
license = "MIT/Apache-2.0"
Expand All @@ -16,15 +16,15 @@ async = ["futures-preview", "futures-test-preview"]
[dependencies]
bincode = "1"
crossbeam-channel = "0.3"
lazy_static = "1"
libc = "0.2.12"
rand = "0.6"
serde = { version="1.0", features=["rc"] }
uuid = {version = "0.7", features = ["v4"]}
fnv = "1.0.3"
tempfile = "3"
futures-preview = { version = "0.3.0-alpha.17", optional = true }
futures-test-preview = { version = "0.3.0-alpha.17", optional = true }
lazy_static = "1"
libc = "0.2.12"
rand = "0.7"
serde = { version = "1.0", features = ["rc"] }
tempfile = "3"
uuid = { version = "0.7", features = ["v4"] }

[target.'cfg(any(target_os = "linux", target_os = "openbsd", target_os = "freebsd"))'.dependencies]
mio = "0.6.11"
Expand Down
4 changes: 2 additions & 2 deletions src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl Router {
IpcSelectionResult::MessageReceived(id, message) =>
self.handlers.get_mut(&id).unwrap()(message),
IpcSelectionResult::ChannelClosed(id) => {
self.handlers.remove(&id).unwrap();
let _ = self.handlers.remove(&id).unwrap();
},
}
}
Expand All @@ -176,4 +176,4 @@ enum RouterMsg {
}

/// Function to call when a new event is received from the corresponding receiver.
pub type RouterHandler = Box<FnMut(OpaqueIpcMessage) + Send>;
pub type RouterHandler = Box<dyn FnMut(OpaqueIpcMessage) + Send>;

0 comments on commit 59e2ee3

Please sign in to comment.