diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-06-19 16:07:13 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-06-22 14:59:09 +0200 |
commit | 1d38bc041967b88838ed7b006aab9908e2f24474 (patch) | |
tree | 9ae175710524777f97a14a85e52dacfd71a5dedd /components/constellation | |
parent | 112f1ddeba3d79c9e892986a9e550e4eef933b1f (diff) | |
download | servo-1d38bc041967b88838ed7b006aab9908e2f24474.tar.gz servo-1d38bc041967b88838ed7b006aab9908e2f24474.zip |
Fix some new warnings
Diffstat (limited to 'components/constellation')
-rw-r--r-- | components/constellation/constellation.rs | 2 | ||||
-rw-r--r-- | components/constellation/pipeline.rs | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 2c5b2b6c603..6f8bfbcb849 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -227,7 +227,7 @@ pub struct Constellation<Message, LTF, STF> { /// A handle to register components for hang monitoring. /// None when in multiprocess mode. - background_monitor_register: Option<Box<BackgroundHangMonitorRegister>>, + background_monitor_register: Option<Box<dyn BackgroundHangMonitorRegister>>, /// Channels to control all sampling profilers. sampling_profiler_control: Vec<IpcSender<SamplerControlMsg>>, 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 |