aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xr.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-12-21 15:20:51 -0800
committerManish Goregaokar <manishsmail@gmail.com>2018-12-21 15:47:28 -0800
commit28dff81dbf3f24ae470e1a0004f0813a3247e08f (patch)
tree3147e3ffd8047cbb22521224e8d6edd2012c6420 /components/script/dom/xr.rs
parent7e043a33f17c5a084bb6e34ab3497932a285028a (diff)
downloadservo-28dff81dbf3f24ae470e1a0004f0813a3247e08f.tar.gz
servo-28dff81dbf3f24ae470e1a0004f0813a3247e08f.zip
Fill in XR frame/pose/view implementations
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))