aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpubindgrouplayout.rs
diff options
context:
space:
mode:
authorTaym Haddadi <haddadi.taym@gmail.com>2024-09-06 23:58:13 +0200
committerGitHub <noreply@github.com>2024-09-06 21:58:13 +0000
commit152e62022a8c69d28c217b0fce651fd2d02dc08f (patch)
tree5e83c0cd1a49cfa8b163891427b6044d083de258 /components/script/dom/gpubindgrouplayout.rs
parentbc04f94a301b1575a1bca90e145778d3596e7b1b (diff)
downloadservo-152e62022a8c69d28c217b0fce651fd2d02dc08f.tar.gz
servo-152e62022a8c69d28c217b0fce651fd2d02dc08f.zip
Move convert_label to Into implementation (#33348)
Signed-off-by: Taym <haddadi.taym@gmail.com>
Diffstat (limited to 'components/script/dom/gpubindgrouplayout.rs')
-rw-r--r--components/script/dom/gpubindgrouplayout.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gpubindgrouplayout.rs b/components/script/dom/gpubindgrouplayout.rs
index 875eff8e3fc..18a351079fb 100644
--- a/components/script/dom/gpubindgrouplayout.rs
+++ b/components/script/dom/gpubindgrouplayout.rs
@@ -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) => {