aboutsummaryrefslogtreecommitdiffstats
path: root/components/webvr
diff options
context:
space:
mode:
Diffstat (limited to 'components/webvr')
-rw-r--r--components/webvr/lib.rs9
-rw-r--r--components/webvr/webvr_thread.rs2
2 files changed, 1 insertions, 10 deletions
diff --git a/components/webvr/lib.rs b/components/webvr/lib.rs
index 6b84eb6e1a9..fd2c70c81c2 100644
--- a/components/webvr/lib.rs
+++ b/components/webvr/lib.rs
@@ -4,17 +4,8 @@
#![deny(unsafe_code)]
-extern crate canvas_traits;
-extern crate euclid;
-extern crate ipc_channel;
#[macro_use]
extern crate log;
-extern crate msg;
-extern crate rust_webvr;
-extern crate script_traits;
-extern crate servo_channel;
-extern crate servo_config;
-extern crate webvr_traits;
mod webvr_thread;
pub use crate::webvr_thread::{WebVRCompositorHandler, WebVRThread};
diff --git a/components/webvr/webvr_thread.rs b/components/webvr/webvr_thread.rs
index 4a264e073c0..1a46a33c9cc 100644
--- a/components/webvr/webvr_thread.rs
+++ b/components/webvr/webvr_thread.rs
@@ -347,7 +347,7 @@ impl WebVRThread {
/// * WebVRThread and its VRDisplays are destroyed after all tabs are dropped and the browser is about to exit.
/// WebVRThread is closed using the Exit message.
-pub struct WebVRCompositor(*mut VRDisplay);
+pub struct WebVRCompositor(*mut dyn VRDisplay);
pub struct WebVRCompositorHandler {
compositors: HashMap<webgl::WebVRDeviceId, WebVRCompositor>,
webvr_thread_receiver: Receiver<Option<WebVRCompositor>>,