Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Wülker <[email protected]>
  • Loading branch information
simonwuelker committed Oct 16, 2024
1 parent 2154efb commit dba78ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webxr-api/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ struct MainThreadWakerImpl {
impl MainThreadWakerImpl {
fn new(waker: Box<dyn MainThreadWaker>) -> Result<MainThreadWakerImpl, Error> {
let (sender, receiver) = crate::channel().or(Err(Error::CommunicationError))?;
ipc_channel::router::ROUTER
.add_typed_route(receiver, Box::new(move |_| waker.wake()));
ipc_channel::router::ROUTER.add_typed_route(receiver, Box::new(move |_| waker.wake()));
Ok(MainThreadWakerImpl { sender })
}

Expand Down

0 comments on commit dba78ac

Please sign in to comment.