mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
Take WorkerGlobalScope's worker_id out of its Option.
Unsurprisingly, every worker has an id, so there is no need to wrap it in an Option.
This commit is contained in:
parent
1809748dc1
commit
bd04cecceb
4 changed files with 8 additions and 8 deletions
|
@ -125,7 +125,7 @@ impl<'a> GlobalRef<'a> {
|
|||
pub fn get_worker_id(&self) -> Option<WorkerId> {
|
||||
match *self {
|
||||
GlobalRef::Window(_) => None,
|
||||
GlobalRef::Worker(ref worker) => worker.get_worker_id(),
|
||||
GlobalRef::Worker(ref worker) => Some(worker.get_worker_id()),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue