servo: Merge #14119 - Address common source of shutdown panics (from servo:jdm-patch-1); r=mbrubeck

Remove easy sources of intermittent failures during test shutdown. Might help #14118 and #14117.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5173a655219d5eff64d4702718cfa63c2c44e1b3
This commit is contained in:
Josh Matthews 2016-11-08 12:23:56 -06:00
parent d743abdc2d
commit 0a362facce
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ pub trait OpaqueSender<T> {
impl<T> OpaqueSender<T> for Sender<T> {
fn send(&self, message: T) {
Sender::send(self, message).unwrap();
let _ = Sender::send(self, message);
}
}

View File

@ -22,7 +22,7 @@ pub struct ProfilerChan(pub IpcSender<ProfilerMsg>);
impl ProfilerChan {
pub fn send(&self, msg: ProfilerMsg) {
self.0.send(msg).unwrap();
let _ = self.0.send(msg);
}
}