aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/vertexarrayobject.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/vertexarrayobject.rs')
-rw-r--r--components/script/dom/vertexarrayobject.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/vertexarrayobject.rs b/components/script/dom/vertexarrayobject.rs
index 4100e230493..31db2848fc6 100644
--- a/components/script/dom/vertexarrayobject.rs
+++ b/components/script/dom/vertexarrayobject.rs
@@ -16,7 +16,7 @@ use crate::dom::webglbuffer::WebGLBuffer;
use crate::dom::webglrenderingcontext::{Operation, WebGLRenderingContext};
#[derive(JSTraceable, MallocSizeOf)]
-#[crown::unrooted_must_root_lint::must_root]
+#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
pub(crate) struct VertexArrayObject {
context: Dom<WebGLRenderingContext>,
#[no_trace]
@@ -261,7 +261,7 @@ impl Drop for VertexArrayObject {
}
#[derive(Clone, JSTraceable, MallocSizeOf)]
-#[crown::unrooted_must_root_lint::must_root]
+#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
pub(crate) struct VertexAttribData {
pub(crate) enabled_as_array: bool,
pub(crate) size: u8,
@@ -275,7 +275,7 @@ pub(crate) struct VertexAttribData {
}
impl Default for VertexAttribData {
- #[allow(crown::unrooted_must_root)]
+ #[cfg_attr(crown, allow(crown::unrooted_must_root))]
fn default() -> Self {
Self {
enabled_as_array: false,