mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +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
|
@ -42,7 +42,6 @@ impl NavigationPreloadManager {
|
|||
}
|
||||
|
||||
impl NavigationPreloadManagerMethods for NavigationPreloadManager {
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://w3c.github.io/ServiceWorker/#navigation-preload-manager-enable
|
||||
fn Enable(&self) -> Rc<Promise> {
|
||||
let promise = Promise::new(&*self.global());
|
||||
|
@ -65,7 +64,6 @@ impl NavigationPreloadManagerMethods for NavigationPreloadManager {
|
|||
promise
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://w3c.github.io/ServiceWorker/#navigation-preload-manager-disable
|
||||
fn Disable(&self) -> Rc<Promise> {
|
||||
let promise = Promise::new(&*self.global());
|
||||
|
@ -88,7 +86,6 @@ impl NavigationPreloadManagerMethods for NavigationPreloadManager {
|
|||
promise
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://w3c.github.io/ServiceWorker/#navigation-preload-manager-setheadervalue
|
||||
fn SetHeaderValue(&self, value: ByteString) -> Rc<Promise> {
|
||||
let promise = Promise::new(&*self.global());
|
||||
|
@ -111,7 +108,6 @@ impl NavigationPreloadManagerMethods for NavigationPreloadManager {
|
|||
promise
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://w3c.github.io/ServiceWorker/#navigation-preload-manager-getstate
|
||||
fn GetState(&self) -> Rc<Promise> {
|
||||
let promise = Promise::new(&*self.global());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue