mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Use ROUTER::add_typed_route
instead of ROUTER::add_route
everywhere (#33866)
* Use ROUTER::add_typed_route where possible Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update webxr, media and ipc-channel Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
ff374c1428
commit
e33bae6d0a
40 changed files with 177 additions and 195 deletions
|
@ -69,9 +69,9 @@ where
|
|||
}
|
||||
|
||||
#[allow(clippy::wrong_self_convention)] // It is an alias to the underlying module
|
||||
pub fn to_opaque(self) -> ipc_channel::ipc::OpaqueIpcReceiver {
|
||||
pub fn to_ipc_receiver(self) -> ipc_channel::ipc::IpcReceiver<T> {
|
||||
match self {
|
||||
GLPlayerReceiver::Ipc(receiver) => receiver.to_opaque(),
|
||||
GLPlayerReceiver::Ipc(receiver) => receiver,
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue