aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpubindgroup.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/gpubindgroup.rs
parent1d4efb48ba904aab93ebad3a2892aed46444088f (diff)
downloadservo-3b5ede153d61c2c033326b5df2417e3757dba17b.tar.gz
servo-3b5ede153d61c2c033326b5df2417e3757dba17b.zip
Update wgpu-core and wgpu-types
Diffstat (limited to 'components/script/dom/gpubindgroup.rs')
-rw-r--r--components/script/dom/gpubindgroup.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/components/script/dom/gpubindgroup.rs b/components/script/dom/gpubindgroup.rs
index b7b8cadeacf..4767d28d0f1 100644
--- a/components/script/dom/gpubindgroup.rs
+++ b/components/script/dom/gpubindgroup.rs
@@ -21,7 +21,7 @@ pub struct GPUBindGroup {
}
impl GPUBindGroup {
- fn new_inherited(bind_group: WebGPUBindGroup, valid: bool) -> GPUBindGroup {
+ fn new_inherited(bind_group: WebGPUBindGroup, valid: bool) -> Self {
Self {
reflector_: Reflector::new(),
label: DomRefCell::new(None),
@@ -30,11 +30,7 @@ impl GPUBindGroup {
}
}
- pub fn new(
- global: &GlobalScope,
- bind_group: WebGPUBindGroup,
- valid: bool,
- ) -> DomRoot<GPUBindGroup> {
+ pub fn new(global: &GlobalScope, bind_group: WebGPUBindGroup, valid: bool) -> DomRoot<Self> {
reflect_dom_object(
Box::new(GPUBindGroup::new_inherited(bind_group, valid)),
global,