diff options
Diffstat (limited to 'components/script/dom/gpubuffer.rs')
-rw-r--r-- | components/script/dom/gpubuffer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gpubuffer.rs b/components/script/dom/gpubuffer.rs index 643fbfc98c7..1c756dae15f 100644 --- a/components/script/dom/gpubuffer.rs +++ b/components/script/dom/gpubuffer.rs @@ -57,7 +57,7 @@ impl GPUBuffer { usage: u32, valid: bool, mapping: RootedTraceableBox<Heap<*mut JSObject>>, - ) -> GPUBuffer { + ) -> Self { Self { reflector_: Reflector::new(), channel, @@ -83,7 +83,7 @@ impl GPUBuffer { usage: u32, valid: bool, mapping: RootedTraceableBox<Heap<*mut JSObject>>, - ) -> DomRoot<GPUBuffer> { + ) -> DomRoot<Self> { reflect_dom_object( Box::new(GPUBuffer::new_inherited( channel, buffer, device, state, size, usage, valid, mapping, |