mirror of
https://github.com/servo/servo.git
synced 2025-07-16 11:53:39 +01:00
Remove the unused Option around the IpcSender from LayoutToPaintMsg::Exit.
This commit is contained in:
parent
eb44bdb33a
commit
a01fd7732d
2 changed files with 3 additions and 3 deletions
|
@ -197,7 +197,7 @@ pub enum Msg {
|
||||||
pub enum LayoutToPaintMsg {
|
pub enum LayoutToPaintMsg {
|
||||||
PaintInit(Epoch, PaintLayer),
|
PaintInit(Epoch, PaintLayer),
|
||||||
CanvasLayer(LayerId, IpcSender<CanvasMsg>),
|
CanvasLayer(LayerId, IpcSender<CanvasMsg>),
|
||||||
Exit(Option<IpcSender<()>>, PipelineExitType),
|
Exit(IpcSender<()>, PipelineExitType),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum ChromeToPaintMsg {
|
pub enum ChromeToPaintMsg {
|
||||||
|
@ -388,7 +388,7 @@ impl<C> PaintTask<C> where C: PaintListener + Send + 'static {
|
||||||
self.compositor.notify_paint_task_exiting(self.id);
|
self.compositor.notify_paint_task_exiting(self.id);
|
||||||
|
|
||||||
debug!("PaintTask: Exiting.");
|
debug!("PaintTask: Exiting.");
|
||||||
response_channel.as_ref().map(|channel| channel.send(()));
|
let _ = response_channel.send(());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Msg::FromChrome(ChromeToPaintMsg::Exit(_)) => {
|
Msg::FromChrome(ChromeToPaintMsg::Exit(_)) => {
|
||||||
|
|
|
@ -740,7 +740,7 @@ impl LayoutTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
let (response_chan, response_port) = ipc::channel().unwrap();
|
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()
|
response_port.recv().unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue