Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Commit 2094e04

Browse files
authored
Update ipc-channel to 0.19 (#253)
* Update ipc-channel to 0.19 Signed-off-by: Simon Wülker <[email protected]> * cargo fmt Signed-off-by: Simon Wülker <[email protected]> --------- Signed-off-by: Simon Wülker <[email protected]>
1 parent e3249c3 commit 2094e04

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

webxr-api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ipc = ["serde", "ipc-channel", "euclid/serde"]
2222

2323
[dependencies]
2424
euclid = "0.22"
25-
ipc-channel = { version = "0.18", optional = true }
25+
ipc-channel = { version = "0.19", optional = true }
2626
log = "0.4"
2727
serde = { version = "1.0", optional = true }
2828
time = { version = "0.1", optional = true }

webxr-api/registry.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ struct MainThreadWakerImpl {
6666
impl MainThreadWakerImpl {
6767
fn new(waker: Box<dyn MainThreadWaker>) -> Result<MainThreadWakerImpl, Error> {
6868
let (sender, receiver) = crate::channel().or(Err(Error::CommunicationError))?;
69-
ipc_channel::router::ROUTER
70-
.add_route(receiver.to_opaque(), Box::new(move |_| waker.wake()));
69+
ipc_channel::router::ROUTER.add_typed_route(receiver, Box::new(move |_| waker.wake()));
7170
Ok(MainThreadWakerImpl { sender })
7271
}
7372

0 commit comments

Comments
 (0)