aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpucommandbuffer.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/gpucommandbuffer.rs
parent1d4efb48ba904aab93ebad3a2892aed46444088f (diff)
downloadservo-3b5ede153d61c2c033326b5df2417e3757dba17b.tar.gz
servo-3b5ede153d61c2c033326b5df2417e3757dba17b.zip
Update wgpu-core and wgpu-types
Diffstat (limited to 'components/script/dom/gpucommandbuffer.rs')
-rw-r--r--components/script/dom/gpucommandbuffer.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/gpucommandbuffer.rs b/components/script/dom/gpucommandbuffer.rs
index b1871051e52..4b23a622ca3 100644
--- a/components/script/dom/gpucommandbuffer.rs
+++ b/components/script/dom/gpucommandbuffer.rs
@@ -37,8 +37,8 @@ impl GPUCommandBuffer {
channel: WebGPU,
command_buffer: WebGPUCommandBuffer,
buffers: HashSet<DomRoot<GPUBuffer>>,
- ) -> GPUCommandBuffer {
- GPUCommandBuffer {
+ ) -> Self {
+ Self {
channel,
reflector_: Reflector::new(),
label: DomRefCell::new(None),
@@ -52,7 +52,7 @@ impl GPUCommandBuffer {
channel: WebGPU,
command_buffer: WebGPUCommandBuffer,
buffers: HashSet<DomRoot<GPUBuffer>>,
- ) -> DomRoot<GPUCommandBuffer> {
+ ) -> DomRoot<Self> {
reflect_dom_object(
Box::new(GPUCommandBuffer::new_inherited(
channel,