diff --git a/components/script/dom/bindings/root.rs b/components/script/dom/bindings/root.rs index 142e981120c..d6b7d451362 100644 --- a/components/script/dom/bindings/root.rs +++ b/components/script/dom/bindings/root.rs @@ -43,7 +43,6 @@ use crate::dom::bindings::trace::{trace_reflector, JSTraceable}; use crate::dom::node::Node; /// A rooted value. -#[cfg_attr(crown, allow(crown::unrooted_must_root))] #[cfg_attr(crown, crown::unrooted_must_root_lint::allow_unrooted_interior)] pub(crate) struct Root { /// The value to root. diff --git a/components/script/dom/bindings/weakref.rs b/components/script/dom/bindings/weakref.rs index 4e92d9f8bc6..dccbb608595 100644 --- a/components/script/dom/bindings/weakref.rs +++ b/components/script/dom/bindings/weakref.rs @@ -33,7 +33,6 @@ use crate::dom::bindings::trace::JSTraceable; pub(crate) const DOM_WEAK_SLOT: u32 = 1; /// A weak reference to a JS-managed DOM object. -#[cfg_attr(crown, allow(crown::unrooted_must_root))] #[cfg_attr(crown, crown::unrooted_must_root_lint::allow_unrooted_interior)] pub(crate) struct WeakRef { ptr: ptr::NonNull>,