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

@ -89,7 +89,7 @@ impl Promise {
}
}
#[allow(unsafe_code, unrooted_must_root)]
#[allow(unsafe_code)]
pub fn duplicate(&self) -> Rc<Promise> {
let cx = self.global().get_cx();
unsafe { Promise::new_with_js_promise(self.reflector().get_jsobject(), cx) }