Remove the unused Option around the IpcSender from LayoutToPaintMsg::Exit.

This commit is contained in:
Ms2ger 2015-11-05 15:45:06 +01:00
parent eb44bdb33a
commit a01fd7732d
2 changed files with 3 additions and 3 deletions

View file

@ -197,7 +197,7 @@ pub enum Msg {
pub enum LayoutToPaintMsg {
PaintInit(Epoch, PaintLayer),
CanvasLayer(LayerId, IpcSender<CanvasMsg>),
Exit(Option<IpcSender<()>>, PipelineExitType),
Exit(IpcSender<()>, PipelineExitType),
}
pub enum ChromeToPaintMsg {
@ -388,7 +388,7 @@ impl<C> PaintTask<C> where C: PaintListener + Send + 'static {
self.compositor.notify_paint_task_exiting(self.id);
debug!("PaintTask: Exiting.");
response_channel.as_ref().map(|channel| channel.send(()));
let _ = response_channel.send(());
break;
}
Msg::FromChrome(ChromeToPaintMsg::Exit(_)) => {

View file

@ -740,7 +740,7 @@ impl LayoutTask {
}
let (response_chan, response_port) = ipc::channel().unwrap();
self.paint_chan.send(LayoutToPaintMsg::Exit(Some(response_chan), exit_type)).unwrap();
self.paint_chan.send(LayoutToPaintMsg::Exit(response_chan, exit_type)).unwrap();
response_port.recv().unwrap()
}