aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_extensions/extension.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgl_extensions/extension.rs')
-rw-r--r--components/script/dom/webgl_extensions/extension.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/script/dom/webgl_extensions/extension.rs b/components/script/dom/webgl_extensions/extension.rs
index 1f8c770aaa3..8610fcc6e80 100644
--- a/components/script/dom/webgl_extensions/extension.rs
+++ b/components/script/dom/webgl_extensions/extension.rs
@@ -10,7 +10,10 @@ use dom::webglrenderingcontext::WebGLRenderingContext;
use super::WebGLExtensions;
/// Trait implemented by WebGL extensions.
-pub trait WebGLExtension: Sized where Self::Extension: DomObject + JSTraceable {
+pub trait WebGLExtension: Sized
+where
+ Self::Extension: DomObject + JSTraceable,
+{
type Extension;
/// Creates the DOM object of the WebGL extension.
@@ -33,5 +36,5 @@ pub enum WebGLExtensionSpec {
/// Extensions written against both WebGL and WebGL2 specs.
All,
/// Extensions writen against a specific WebGL version spec.
- Specific(WebGLVersion)
+ Specific(WebGLVersion),
}