mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove now-unnecessary must_root and allow(unrooted_must_root) annotations
This commit is contained in:
parent
6df1c6d7e7
commit
611dc4bc70
28 changed files with 2 additions and 67 deletions
|
@ -57,7 +57,6 @@ impl Drop for XR {
|
|||
}
|
||||
|
||||
impl XRMethods for XR {
|
||||
#[allow(unrooted_must_root)]
|
||||
/// https://immersive-web.github.io/webxr/#dom-xr-supportssessionmode
|
||||
fn SupportsSessionMode(&self, mode: XRSessionMode) -> Rc<Promise> {
|
||||
// XXXManishearth this should select an XR device first
|
||||
|
@ -72,7 +71,6 @@ impl XRMethods for XR {
|
|||
promise
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
/// https://immersive-web.github.io/webxr/#dom-xr-requestsession
|
||||
fn RequestSession(&self, options: &XRSessionCreationOptions) -> Rc<Promise> {
|
||||
let promise = Promise::new(&self.global());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue