aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/console.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/console.rs')
-rw-r--r--components/script/dom/console.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/console.rs b/components/script/dom/console.rs
index e1bcd13c7f1..3d00194d2cf 100644
--- a/components/script/dom/console.rs
+++ b/components/script/dom/console.rs
@@ -31,7 +31,7 @@ const MAX_LOG_DEPTH: usize = 10;
const MAX_LOG_CHILDREN: usize = 15;
/// <https://developer.mozilla.org/en-US/docs/Web/API/Console>
-#[crown::unrooted_must_root_lint::must_root]
+#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
pub(crate) struct Console;
impl Console {