mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
add unwrap
to send/recv
calls
This commit is contained in:
parent
3da41c2b16
commit
685fee02a0
30 changed files with 100 additions and 100 deletions
|
@ -124,11 +124,11 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
|
|||
};
|
||||
|
||||
let ConstellationChan(ref chan) = constellation_chan;
|
||||
chan.send(ConstellationMsg::InitLoadUrl(url));
|
||||
chan.send(ConstellationMsg::InitLoadUrl(url)).unwrap();
|
||||
}
|
||||
|
||||
// Send the constallation Chan as the result
|
||||
result_chan.send(constellation_chan);
|
||||
result_chan.send(constellation_chan).unwrap();
|
||||
});
|
||||
|
||||
let constellation_chan = result_port.recv().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue