From 84bf7caaa6b6ce11d0f4e65406ab304c0d588dbd Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Sat, 18 Jan 2025 21:39:16 -0500 Subject: [PATCH] Remove unneeded allow annotation. (#35025) Signed-off-by: Josh Matthews --- components/script/dom/bindings/root.rs | 1 - components/script/dom/bindings/weakref.rs | 1 - 2 files changed, 2 deletions(-) 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>,