aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/attr.rs')
-rw-r--r--components/script/dom/attr.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/attr.rs b/components/script/dom/attr.rs
index 53972dc6ab8..f201c768187 100644
--- a/components/script/dom/attr.rs
+++ b/components/script/dom/attr.rs
@@ -246,6 +246,7 @@ impl<'a> AttrHelpers<'a> for JSRef<'a, Attr> {
}
}
+#[allow(unsafe_code)]
pub trait AttrHelpersForLayout {
unsafe fn value_ref_forever(&self) -> &'static str;
unsafe fn value_atom_forever(&self) -> Option<Atom>;
@@ -253,6 +254,7 @@ pub trait AttrHelpersForLayout {
unsafe fn local_name_atom_forever(&self) -> Atom;
}
+#[allow(unsafe_code)]
impl AttrHelpersForLayout for Attr {
#[inline]
unsafe fn value_ref_forever(&self) -> &'static str {