aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webxr
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webxr')
-rw-r--r--components/script/dom/webxr/xrinputsourceevent.rs2
-rw-r--r--components/script/dom/webxr/xrinputsourceschangeevent.rs2
-rw-r--r--components/script/dom/webxr/xrreferencespaceevent.rs2
-rw-r--r--components/script/dom/webxr/xrsessionevent.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/webxr/xrinputsourceevent.rs b/components/script/dom/webxr/xrinputsourceevent.rs
index 1e381b13a54..47bb32263a2 100644
--- a/components/script/dom/webxr/xrinputsourceevent.rs
+++ b/components/script/dom/webxr/xrinputsourceevent.rs
@@ -30,7 +30,7 @@ pub(crate) struct XRInputSourceEvent {
}
impl XRInputSourceEvent {
- #[allow(crown::unrooted_must_root)]
+ #[cfg_attr(crown, allow(crown::unrooted_must_root))]
fn new_inherited(frame: &XRFrame, source: &XRInputSource) -> XRInputSourceEvent {
XRInputSourceEvent {
event: Event::new_inherited(),
diff --git a/components/script/dom/webxr/xrinputsourceschangeevent.rs b/components/script/dom/webxr/xrinputsourceschangeevent.rs
index 1e2057b0c72..3d00e2984a6 100644
--- a/components/script/dom/webxr/xrinputsourceschangeevent.rs
+++ b/components/script/dom/webxr/xrinputsourceschangeevent.rs
@@ -36,7 +36,7 @@ pub(crate) struct XRInputSourcesChangeEvent {
}
impl XRInputSourcesChangeEvent {
- #[allow(crown::unrooted_must_root)]
+ #[cfg_attr(crown, allow(crown::unrooted_must_root))]
fn new_inherited(session: &XRSession) -> XRInputSourcesChangeEvent {
XRInputSourcesChangeEvent {
event: Event::new_inherited(),
diff --git a/components/script/dom/webxr/xrreferencespaceevent.rs b/components/script/dom/webxr/xrreferencespaceevent.rs
index cce439c3757..1269f953172 100644
--- a/components/script/dom/webxr/xrreferencespaceevent.rs
+++ b/components/script/dom/webxr/xrreferencespaceevent.rs
@@ -30,7 +30,7 @@ pub(crate) struct XRReferenceSpaceEvent {
}
impl XRReferenceSpaceEvent {
- #[allow(crown::unrooted_must_root)]
+ #[cfg_attr(crown, allow(crown::unrooted_must_root))]
fn new_inherited(
space: &XRReferenceSpace,
transform: Option<&XRRigidTransform>,
diff --git a/components/script/dom/webxr/xrsessionevent.rs b/components/script/dom/webxr/xrsessionevent.rs
index 98f5ce710b8..0485559bcf9 100644
--- a/components/script/dom/webxr/xrsessionevent.rs
+++ b/components/script/dom/webxr/xrsessionevent.rs
@@ -26,7 +26,7 @@ pub(crate) struct XRSessionEvent {
}
impl XRSessionEvent {
- #[allow(crown::unrooted_must_root)]
+ #[cfg_attr(crown, allow(crown::unrooted_must_root))]
fn new_inherited(session: &XRSession) -> XRSessionEvent {
XRSessionEvent {
event: Event::new_inherited(),