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:
Ms2ger 2015-08-03 18:28:48 +02:00
parent 1809748dc1
commit bd04cecceb
4 changed files with 8 additions and 8 deletions

View file

@ -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()),
}
}