Remove now-unnecessary must_root and allow(unrooted_must_root) annotations

This commit is contained in:
Manish Goregaokar 2019-01-03 16:29:49 -08:00
parent 6df1c6d7e7
commit 611dc4bc70
28 changed files with 2 additions and 67 deletions

View file

@ -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());