diff options
Diffstat (limited to 'components/dom_struct/lib.rs')
-rw-r--r-- | components/dom_struct/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dom_struct/lib.rs b/components/dom_struct/lib.rs index 2d9dac7bd1b..27c591f56b8 100644 --- a/components/dom_struct/lib.rs +++ b/components/dom_struct/lib.rs @@ -13,7 +13,7 @@ pub fn dom_struct(args: TokenStream, input: TokenStream) -> TokenStream { } let attributes = quote! { #[derive(deny_public_fields::DenyPublicFields, domobject_derive::DomObject, JSTraceable, MallocSizeOf)] - #[crown::unrooted_must_root_lint::must_root] + #[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)] #[repr(C)] }; |