diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-11-01 23:45:06 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-11-06 15:26:02 +0100 |
commit | 45f7199eee82c66637ec68287eafa40a651001c4 (patch) | |
tree | 8c0802f4ac7b89c2ce4d73063c8f65b9ee5face9 /components/script/dom/webgl_extensions/wrapper.rs | |
parent | 86f148fb97601413c0d983f21b760d973ade7a75 (diff) | |
download | servo-45f7199eee82c66637ec68287eafa40a651001c4.tar.gz servo-45f7199eee82c66637ec68287eafa40a651001c4.zip |
`cargo fix --edition`
Diffstat (limited to 'components/script/dom/webgl_extensions/wrapper.rs')
-rw-r--r-- | components/script/dom/webgl_extensions/wrapper.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/webgl_extensions/wrapper.rs b/components/script/dom/webgl_extensions/wrapper.rs index f45d3ff8045..6b39fc0e2bc 100644 --- a/components/script/dom/webgl_extensions/wrapper.rs +++ b/components/script/dom/webgl_extensions/wrapper.rs @@ -2,10 +2,10 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use dom::bindings::reflector::DomObject; -use dom::bindings::root::MutNullableDom; -use dom::bindings::trace::JSTraceable; -use dom::webglrenderingcontext::WebGLRenderingContext; +use crate::dom::bindings::reflector::DomObject; +use crate::dom::bindings::root::MutNullableDom; +use crate::dom::bindings::trace::JSTraceable; +use crate::dom::webglrenderingcontext::WebGLRenderingContext; use js::jsapi::JSObject; use malloc_size_of::MallocSizeOf; use std::any::Any; @@ -21,7 +21,7 @@ pub trait WebGLExtensionWrapper: JSTraceable + MallocSizeOf { ext: &WebGLExtensions, ) -> NonNull<JSObject>; fn spec(&self) -> WebGLExtensionSpec; - fn is_supported(&self, &WebGLExtensions) -> bool; + fn is_supported(&self, _: &WebGLExtensions) -> bool; fn is_enabled(&self) -> bool; fn enable(&self, ext: &WebGLExtensions); fn name(&self) -> &'static str; |