aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/page.rs
diff options
context:
space:
mode:
authorAlexandru Cojocaru <xojoc@gmx.com>2015-01-29 22:11:03 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-03 16:05:13 +0100
commit685fee02a0a5cc91bf92f0407f559ba164950a83 (patch)
tree4f38601714276d2a778b2c7fb65d1b4396ef7f25 /components/script/page.rs
parent3da41c2b16d84a8eb4c616b50124afd1252d1123 (diff)
downloadservo-685fee02a0a5cc91bf92f0407f559ba164950a83.tar.gz
servo-685fee02a0a5cc91bf92f0407f559ba164950a83.zip
add `unwrap` to `send/recv` calls
Diffstat (limited to 'components/script/page.rs')
-rw-r--r--components/script/page.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/page.rs b/components/script/page.rs
index 954813e607c..65f61490afd 100644
--- a/components/script/page.rs
+++ b/components/script/page.rs
@@ -139,7 +139,7 @@ impl Page {
let layout_rpc: Box<LayoutRPC> = {
let (rpc_send, rpc_recv) = channel();
let LayoutChan(ref lchan) = layout_chan;
- lchan.send(Msg::GetRPC(rpc_send));
+ lchan.send(Msg::GetRPC(rpc_send)).unwrap();
rpc_recv.recv().unwrap()
};
Page {
@@ -323,7 +323,7 @@ impl Page {
match join_port.try_recv() {
Err(Empty) => {
info!("script: waiting on layout");
- join_port.recv();
+ join_port.recv().unwrap();
}
Ok(_) => {}
Err(Disconnected) => {
@@ -398,7 +398,7 @@ impl Page {
};
let LayoutChan(ref chan) = self.layout_chan;
- chan.send(Msg::Reflow(reflow));
+ chan.send(Msg::Reflow(reflow)).unwrap();
debug!("script: layout forked");