mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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() {
|
||||
Ok(_) => {
|
||||
result_port.recv().unwrap().map(|_| {
|
||||
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());
|
||||
|
||||
Ok((out_of_process_chan, in_process_chan))
|
||||
},
|
||||
Err(_) => Err("Could not create WebGLPaintThread.")
|
||||
}
|
||||
(out_of_process_chan, in_process_chan)
|
||||
})
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue