Move convert_label to Into implementation (#33348)

Signed-off-by: Taym <haddadi.taym@gmail.com>
This commit is contained in:
Taym Haddadi 2024-09-06 23:58:13 +02:00 committed by GitHub
parent bc04f94a30
commit 152e62022a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 23 additions and 31 deletions

View file

@ -17,7 +17,7 @@ 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_bind_group_layout_entry, convert_label};
use crate::dom::gpuconvert::convert_bind_group_layout_entry;
use crate::dom::gpudevice::GPUDevice;
#[dom_struct]
@ -80,7 +80,7 @@ impl GPUBindGroupLayout {
let desc = match entries {
Ok(entries) => Some(BindGroupLayoutDescriptor {
label: convert_label(&descriptor.parent),
label: (&descriptor.parent).into(),
entries: Cow::Owned(entries),
}),
Err(error) => {