aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpucomputepipeline.rs
diff options
context:
space:
mode:
authortanishka <109246904+taniishkaaa@users.noreply.github.com>2024-10-11 20:27:41 +0530
committerGitHub <noreply@github.com>2024-10-11 14:57:41 +0000
commit8843a0e400745787faf4a23213cbfdf7e2158c73 (patch)
treedad95e1d1d9e4af0274ebcc3228fd25d45061745 /components/script/dom/gpucomputepipeline.rs
parent2a6cfbaaf90a2c0f821473ea59c05ea1332d3f1d (diff)
downloadservo-8843a0e400745787faf4a23213cbfdf7e2158c73.tar.gz
servo-8843a0e400745787faf4a23213cbfdf7e2158c73.zip
clippy: Fix `type_complexity` warnings in `components/script/dom` (#33790)
* clippy: Fix type_complexity warnings in components/script/dom Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Use explicit & implicit method calls where needed Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Remove unwrap & pass pipeline_layout Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Remove unused variable - bgls Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/dom/gpucomputepipeline.rs')
-rw-r--r--components/script/dom/gpucomputepipeline.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/gpucomputepipeline.rs b/components/script/dom/gpucomputepipeline.rs
index 6f64e59ab5d..cca5e414191 100644
--- a/components/script/dom/gpucomputepipeline.rs
+++ b/components/script/dom/gpucomputepipeline.rs
@@ -76,11 +76,11 @@ impl GPUComputePipeline {
) -> WebGPUComputePipeline {
let compute_pipeline_id = device.global().wgpu_id_hub().create_compute_pipeline_id();
- let (layout, implicit_ids, _) = device.get_pipeline_layout_data(&descriptor.parent.layout);
+ let pipeline_layout = device.get_pipeline_layout_data(&descriptor.parent.layout);
let desc = ComputePipelineDescriptor {
label: (&descriptor.parent.parent).into(),
- layout,
+ layout: pipeline_layout.explicit(),
stage: (&descriptor.compute).into(),
cache: None,
};
@@ -92,7 +92,7 @@ impl GPUComputePipeline {
device_id: device.id().0,
compute_pipeline_id,
descriptor: desc,
- implicit_ids,
+ implicit_ids: pipeline_layout.implicit(),
async_sender,
})
.expect("Failed to create WebGPU ComputePipeline");