diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-11-01 21:43:04 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-11-08 09:28:00 +0100 |
commit | 2012be4a8bd97f2fd69f986c8fffb1af1eec21dc (patch) | |
tree | c9f1ef91146253f72987cb1436866523880965e0 /components/webvr | |
parent | b1fd6237d1304f3d57abdafd3e6e738c1ece9f83 (diff) | |
download | servo-2012be4a8bd97f2fd69f986c8fffb1af1eec21dc.tar.gz servo-2012be4a8bd97f2fd69f986c8fffb1af1eec21dc.zip |
`cargo fix --edition-idioms`
Diffstat (limited to 'components/webvr')
-rw-r--r-- | components/webvr/lib.rs | 9 | ||||
-rw-r--r-- | components/webvr/webvr_thread.rs | 2 |
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>>, |