diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-04 01:19:13 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-04 01:19:13 +0530 |
commit | 3b5ede153d61c2c033326b5df2417e3757dba17b (patch) | |
tree | 96bee91b9cef09d97e5a27445b745c71a5d5361a /components/script/dom/gpuqueue.rs | |
parent | 1d4efb48ba904aab93ebad3a2892aed46444088f (diff) | |
download | servo-3b5ede153d61c2c033326b5df2417e3757dba17b.tar.gz servo-3b5ede153d61c2c033326b5df2417e3757dba17b.zip |
Update wgpu-core and wgpu-types
Diffstat (limited to 'components/script/dom/gpuqueue.rs')
-rw-r--r-- | components/script/dom/gpuqueue.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gpuqueue.rs b/components/script/dom/gpuqueue.rs index 1b4ffa590f3..5b533a8d32c 100644 --- a/components/script/dom/gpuqueue.rs +++ b/components/script/dom/gpuqueue.rs @@ -23,7 +23,7 @@ pub struct GPUQueue { } impl GPUQueue { - fn new_inherited(channel: WebGPU, queue: WebGPUQueue) -> GPUQueue { + fn new_inherited(channel: WebGPU, queue: WebGPUQueue) -> Self { GPUQueue { channel, reflector_: Reflector::new(), @@ -32,7 +32,7 @@ impl GPUQueue { } } - pub fn new(global: &GlobalScope, channel: WebGPU, queue: WebGPUQueue) -> DomRoot<GPUQueue> { + pub fn new(global: &GlobalScope, channel: WebGPU, queue: WebGPUQueue) -> DomRoot<Self> { reflect_dom_object(Box::new(GPUQueue::new_inherited(channel, queue)), global) } } |