diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2015-03-18 21:35:06 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2015-03-18 21:35:06 +0100 |
commit | 1e858ecbc617c06155c9497ab1cb612b8b9e1438 (patch) | |
tree | ad2a1b765ecd0fa823f72e9ea4026957adc3495c /components/util/task.rs | |
parent | d553bfefbb9e534a333640fdcc82ecad89adfcbf (diff) | |
download | servo-1e858ecbc617c06155c9497ab1cb612b8b9e1438.tar.gz servo-1e858ecbc617c06155c9497ab1cb612b8b9e1438.zip |
Fix some warnings in util.
Diffstat (limited to 'components/util/task.rs')
-rw-r--r-- | components/util/task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/task.rs b/components/util/task.rs index 88acbd65e09..97770269259 100644 --- a/components/util/task.rs +++ b/components/util/task.rs @@ -14,7 +14,7 @@ pub fn spawn_named<F>(name: String, f: F) let builder = thread::Builder::new().name(name); builder.spawn(move || { f() - }); + }).unwrap(); } /// Arrange to send a particular message to a channel if the task fails. @@ -40,7 +40,7 @@ pub fn spawn_named_with_send_on_failure<F, T>(name: &'static str, dest.send(msg).unwrap(); } } - }); + }).unwrap(); } #[test] |