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/script/script_thread.rs | |
parent | 112f1ddeba3d79c9e892986a9e550e4eef933b1f (diff) | |
download | servo-1d38bc041967b88838ed7b006aab9908e2f24474.tar.gz servo-1d38bc041967b88838ed7b006aab9908e2f24474.zip |
Fix some new warnings
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 90012015b1c..9264b7b9312 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -508,8 +508,8 @@ unsafe_no_jsmanaged_fields!(RefCell<IncompleteParserContexts>); unsafe_no_jsmanaged_fields!(TaskQueue<MainThreadScriptMsg>); -unsafe_no_jsmanaged_fields!(BackgroundHangMonitorRegister); -unsafe_no_jsmanaged_fields!(BackgroundHangMonitor); +unsafe_no_jsmanaged_fields!(dyn BackgroundHangMonitorRegister); +unsafe_no_jsmanaged_fields!(dyn BackgroundHangMonitor); #[derive(JSTraceable)] // ScriptThread instances are rooted on creation, so this is okay @@ -540,9 +540,9 @@ pub struct ScriptThread { task_queue: TaskQueue<MainThreadScriptMsg>, /// A handle to register associated layout threads for hang-monitoring. - background_hang_monitor_register: Box<BackgroundHangMonitorRegister>, + background_hang_monitor_register: Box<dyn BackgroundHangMonitorRegister>, /// The dedicated means of communication with the background-hang-monitor for this script-thread. - background_hang_monitor: Box<BackgroundHangMonitor>, + background_hang_monitor: Box<dyn BackgroundHangMonitor>, /// A channel to hand out to script thread-based entities that need to be able to enqueue /// events in the event queue. @@ -2337,7 +2337,7 @@ impl ScriptThread { // 2. If response's status is 204 or 205, then abort these steps. match metadata { Some(Metadata { - status: Some((204...205, _)), + status: Some((204..=205, _)), .. }) => { // If we have an existing window that is being navigated: |