mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
modified to use map
instead of match
.
This commit is contained in:
parent
bc1850240f
commit
1bde88395c
1 changed files with 5 additions and 9 deletions
|
@ -228,15 +228,11 @@ impl WebGLPaintThread {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
match result_port.recv() {
|
result_port.recv().unwrap().map(|_| {
|
||||||
Ok(_) => {
|
let (out_of_process_chan, out_of_process_port) = ipc::channel::<CanvasMsg>().unwrap();
|
||||||
let (out_of_process_chan, out_of_process_port) = ipc::channel::<CanvasMsg>().unwrap();
|
ROUTER.route_ipc_receiver_to_mpsc_sender(out_of_process_port, in_process_chan.clone());
|
||||||
ROUTER.route_ipc_receiver_to_mpsc_sender(out_of_process_port, in_process_chan.clone());
|
(out_of_process_chan, in_process_chan)
|
||||||
|
})
|
||||||
Ok((out_of_process_chan, in_process_chan))
|
|
||||||
},
|
|
||||||
Err(_) => Err("Could not create WebGLPaintThread.")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue