aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/xr.rs')
-rw-r--r--components/script/dom/xr.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/xr.rs b/components/script/dom/xr.rs
index 37154c34c6b..3f1e963666c 100644
--- a/components/script/dom/xr.rs
+++ b/components/script/dom/xr.rs
@@ -119,7 +119,7 @@ impl XR {
self.sync_display(&display);
}
},
- Err(e) => return Err(()),
+ Err(_) => return Err(()),
}
} else {
// WebVR spec: The Promise MUST be rejected if WebVR is not enabled/supported.
@@ -127,7 +127,8 @@ impl XR {
}
// convert from Dom to DomRoot
- Ok(self.displays
+ Ok(self
+ .displays
.borrow()
.iter()
.map(|d| DomRoot::from_ref(&**d))