diff options
Diffstat (limited to 'components/util/taskpool.rs')
-rw-r--r-- | components/util/taskpool.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/taskpool.rs b/components/util/taskpool.rs index d3f52c5018b..e091d0b5d6d 100644 --- a/components/util/taskpool.rs +++ b/components/util/taskpool.rs @@ -21,7 +21,7 @@ use std::sync::mpsc::{channel, Sender, Receiver}; use std::thunk::Thunk; pub struct TaskPool { - tx: Sender<Thunk<()>>, + tx: Sender<Thunk<'static, ()>>, } impl TaskPool { @@ -52,7 +52,7 @@ impl TaskPool { } pub fn execute<F>(&self, job: F) - where F: FnOnce() + Send + where F: FnOnce() + Send + 'static { self.tx.send(Thunk::new(job)).unwrap(); } |