diff options
Diffstat (limited to 'components/script/dom/gpurenderpipeline.rs')
-rw-r--r-- | components/script/dom/gpurenderpipeline.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gpurenderpipeline.rs b/components/script/dom/gpurenderpipeline.rs index 68d07820103..3a9bebba945 100644 --- a/components/script/dom/gpurenderpipeline.rs +++ b/components/script/dom/gpurenderpipeline.rs @@ -27,7 +27,7 @@ impl GPURenderPipeline { render_pipeline: WebGPURenderPipeline, device: WebGPUDevice, valid: bool, - ) -> GPURenderPipeline { + ) -> Self { Self { reflector_: Reflector::new(), label: DomRefCell::new(None), @@ -42,7 +42,7 @@ impl GPURenderPipeline { render_pipeline: WebGPURenderPipeline, device: WebGPUDevice, valid: bool, - ) -> DomRoot<GPURenderPipeline> { + ) -> DomRoot<Self> { reflect_dom_object( Box::new(GPURenderPipeline::new_inherited( render_pipeline, |