aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorAshwin R <ashwinravichandran24@gmail.com>2016-08-27 07:37:12 +0530
committerAshwin R <ashwinravichandran24@gmail.com>2016-08-27 07:37:12 +0530
commit41accc283d3d46fdd000073be3cda9ed4945aa59 (patch)
tree474fea414d19d658e873d42a1761d16f74287ca8 /components/script/script_thread.rs
parent3e2753cbc9430519d87f1988572029c5f05b5549 (diff)
downloadservo-41accc283d3d46fdd000073be3cda9ed4945aa59.tar.gz
servo-41accc283d3d46fdd000073be3cda9ed4945aa59.zip
fixed calling unwrap on an Err value
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index e0e451bc120..5dcf965aaa5 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -2201,7 +2201,7 @@ fn shut_down_layout(context_tree: &BrowsingContext) {
let chan = window.layout_chan().clone();
if chan.send(message::Msg::PrepareToExit(response_chan)).is_ok() {
channels.push(chan);
- response_port.recv().unwrap();
+ let _ = response_port.recv();
}
}