mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -307,7 +307,6 @@ impl VRDisplayMethods for VRDisplay {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://w3c.github.io/webvr/#dom-vrdisplay-requestpresent
|
||||
fn RequestPresent(&self, layers: Vec<VRLayer>) -> Rc<Promise> {
|
||||
let promise = Promise::new(&self.global());
|
||||
|
@ -380,7 +379,6 @@ impl VRDisplayMethods for VRDisplay {
|
|||
promise
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://w3c.github.io/webvr/#dom-vrdisplay-exitpresent
|
||||
fn ExitPresent(&self) -> Rc<Promise> {
|
||||
let promise = Promise::new(&self.global());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue