aboutsummaryrefslogtreecommitdiffstats
path: root/components/constellation/pipeline.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-06-19 16:07:13 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-06-22 14:59:09 +0200
commit1d38bc041967b88838ed7b006aab9908e2f24474 (patch)
tree9ae175710524777f97a14a85e52dacfd71a5dedd /components/constellation/pipeline.rs
parent112f1ddeba3d79c9e892986a9e550e4eef933b1f (diff)
downloadservo-1d38bc041967b88838ed7b006aab9908e2f24474.tar.gz
servo-1d38bc041967b88838ed7b006aab9908e2f24474.zip
Fix some new warnings
Diffstat (limited to 'components/constellation/pipeline.rs')
-rw-r--r--components/constellation/pipeline.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs
index b89ce8a259c..4cc4462a4ca 100644
--- a/components/constellation/pipeline.rs
+++ b/components/constellation/pipeline.rs
@@ -121,7 +121,7 @@ pub struct InitialPipelineState {
/// A handle to register components for hang monitoring.
/// None when in multiprocess mode.
- pub background_monitor_register: Option<Box<BackgroundHangMonitorRegister>>,
+ pub background_monitor_register: Option<Box<dyn BackgroundHangMonitorRegister>>,
/// A channel for the background hang monitor to send messages to the constellation.
pub background_hang_monitor_to_constellation_chan: IpcSender<HangMonitorAlert>,
@@ -516,7 +516,7 @@ impl UnprivilegedPipelineContent {
pub fn start_all<Message, LTF, STF>(
self,
wait_for_completion: bool,
- background_hang_monitor_register: Box<BackgroundHangMonitorRegister>,
+ background_hang_monitor_register: Box<dyn BackgroundHangMonitorRegister>,
) where
LTF: LayoutThreadFactory<Message = Message>,
STF: ScriptThreadFactory<Message = Message>,
@@ -704,7 +704,9 @@ impl UnprivilegedPipelineContent {
}
}
- pub fn register_with_background_hang_monitor(&mut self) -> Box<BackgroundHangMonitorRegister> {
+ pub fn register_with_background_hang_monitor(
+ &mut self,
+ ) -> Box<dyn BackgroundHangMonitorRegister> {
HangMonitorRegister::init(
self.background_hang_monitor_to_constellation_chan.clone(),
self.sampling_profiler_port