mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -26,7 +26,7 @@ pub struct MemoryProfilerChan(pub Sender<MemoryProfilerMsg>);
|
|||
impl MemoryProfilerChan {
|
||||
pub fn send(&self, msg: MemoryProfilerMsg) {
|
||||
let MemoryProfilerChan(ref c) = *self;
|
||||
c.send(msg);
|
||||
c.send(msg).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ pub fn spawn_named_with_send_on_failure<F, T>(name: &'static str,
|
|||
Ok(()) => (),
|
||||
Err(..) => {
|
||||
debug!("{} failed, notifying constellation", name);
|
||||
dest.send(msg);
|
||||
dest.send(msg).unwrap();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ pub struct TimeProfilerChan(pub Sender<TimeProfilerMsg>);
|
|||
impl TimeProfilerChan {
|
||||
pub fn send(&self, msg: TimeProfilerMsg) {
|
||||
let TimeProfilerChan(ref c) = *self;
|
||||
c.send(msg);
|
||||
c.send(msg).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue