From 28dff81dbf3f24ae470e1a0004f0813a3247e08f Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 21 Dec 2018 15:20:51 -0800 Subject: Fill in XR frame/pose/view implementations --- components/script/dom/xr.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/script/dom/xr.rs') 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)) -- cgit v1.2.3