aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpubindgrouplayout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gpubindgrouplayout.rs')
-rw-r--r--components/script/dom/gpubindgrouplayout.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gpubindgrouplayout.rs b/components/script/dom/gpubindgrouplayout.rs
index c57fc272328..8c141256261 100644
--- a/components/script/dom/gpubindgrouplayout.rs
+++ b/components/script/dom/gpubindgrouplayout.rs
@@ -32,7 +32,7 @@ impl GPUBindGroupLayout {
bind_group_layout: WebGPUBindGroupLayout,
bindings: Vec<GPUBindGroupLayoutEntry>,
valid: bool,
- ) -> GPUBindGroupLayout {
+ ) -> Self {
Self {
reflector_: Reflector::new(),
channel,
@@ -49,7 +49,7 @@ impl GPUBindGroupLayout {
bind_group_layout: WebGPUBindGroupLayout,
bindings: Vec<GPUBindGroupLayoutEntry>,
valid: bool,
- ) -> DomRoot<GPUBindGroupLayout> {
+ ) -> DomRoot<Self> {
reflect_dom_object(
Box::new(GPUBindGroupLayout::new_inherited(
channel,