diff options
author | Alexandru Cojocaru <xojoc@gmx.com> | 2015-01-29 22:11:03 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-02-03 16:05:13 +0100 |
commit | 685fee02a0a5cc91bf92f0407f559ba164950a83 (patch) | |
tree | 4f38601714276d2a778b2c7fb65d1b4396ef7f25 /components/servo/lib.rs | |
parent | 3da41c2b16d84a8eb4c616b50124afd1252d1123 (diff) | |
download | servo-685fee02a0a5cc91bf92f0407f559ba164950a83.tar.gz servo-685fee02a0a5cc91bf92f0407f559ba164950a83.zip |
add `unwrap` to `send/recv` calls
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs index 3325c39e34a..a1a35adfba5 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -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(); |