mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move convert_label to Into implementation (#33348)
Signed-off-by: Taym <haddadi.taym@gmail.com>
This commit is contained in:
parent
bc04f94a30
commit
152e62022a
11 changed files with 23 additions and 31 deletions
|
@ -16,7 +16,6 @@ use crate::dom::bindings::reflector::{reflect_dom_object, DomObject, Reflector};
|
|||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::str::USVString;
|
||||
use crate::dom::globalscope::GlobalScope;
|
||||
use crate::dom::gpuconvert::convert_label;
|
||||
use crate::dom::gpudevice::GPUDevice;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -88,7 +87,7 @@ impl GPUPipelineLayout {
|
|||
.collect::<Vec<_>>();
|
||||
|
||||
let desc = PipelineLayoutDescriptor {
|
||||
label: convert_label(&descriptor.parent),
|
||||
label: (&descriptor.parent).into(),
|
||||
bind_group_layouts: Cow::Owned(bgls.iter().map(|l| l.0).collect::<Vec<_>>()),
|
||||
push_constant_ranges: Cow::Owned(vec![]),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue