aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlheadingelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlheadingelement.rs')
-rw-r--r--components/script/dom/htmlheadingelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlheadingelement.rs b/components/script/dom/htmlheadingelement.rs
index 0f3d92e4d4e..a26f57d44a0 100644
--- a/components/script/dom/htmlheadingelement.rs
+++ b/components/script/dom/htmlheadingelement.rs
@@ -41,7 +41,7 @@ impl HTMLHeadingElement {
}
}
- #[allow(crown::unrooted_must_root)]
+ #[cfg_attr(crown, allow(crown::unrooted_must_root))]
pub(crate) fn new(
local_name: LocalName,
prefix: Option<Prefix>,