mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -54,6 +54,6 @@ impl TaskPool {
|
|||
pub fn execute<F>(&self, job: F)
|
||||
where F: FnOnce() + Send
|
||||
{
|
||||
self.tx.send(Thunk::new(job));
|
||||
self.tx.send(Thunk::new(job)).unwrap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue