mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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>
This commit is contained in:
parent
2a6cfbaaf9
commit
8843a0e400
3 changed files with 38 additions and 25 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue