aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpushadermodule.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-06-04 01:19:13 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-06-04 01:19:13 +0530
commit3b5ede153d61c2c033326b5df2417e3757dba17b (patch)
tree96bee91b9cef09d97e5a27445b745c71a5d5361a /components/script/dom/gpushadermodule.rs
parent1d4efb48ba904aab93ebad3a2892aed46444088f (diff)
downloadservo-3b5ede153d61c2c033326b5df2417e3757dba17b.tar.gz
servo-3b5ede153d61c2c033326b5df2417e3757dba17b.zip
Update wgpu-core and wgpu-types
Diffstat (limited to 'components/script/dom/gpushadermodule.rs')
-rw-r--r--components/script/dom/gpushadermodule.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/components/script/dom/gpushadermodule.rs b/components/script/dom/gpushadermodule.rs
index 07aef69cbcc..24a96bdaac4 100644
--- a/components/script/dom/gpushadermodule.rs
+++ b/components/script/dom/gpushadermodule.rs
@@ -19,7 +19,7 @@ pub struct GPUShaderModule {
}
impl GPUShaderModule {
- fn new_inherited(shader_module: WebGPUShaderModule) -> GPUShaderModule {
+ fn new_inherited(shader_module: WebGPUShaderModule) -> Self {
Self {
reflector_: Reflector::new(),
label: DomRefCell::new(None),
@@ -27,10 +27,7 @@ impl GPUShaderModule {
}
}
- pub fn new(
- global: &GlobalScope,
- shader_module: WebGPUShaderModule,
- ) -> DomRoot<GPUShaderModule> {
+ pub fn new(global: &GlobalScope, shader_module: WebGPUShaderModule) -> DomRoot<Self> {
reflect_dom_object(
Box::new(GPUShaderModule::new_inherited(shader_module)),
global,