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
|
@ -91,7 +91,6 @@ impl TrustedPromise {
|
|||
/// Obtain a usable DOM Promise from a pinned `TrustedPromise` value. Fails if used on
|
||||
/// a different thread than the original value from which this `TrustedPromise` was
|
||||
/// obtained.
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn root(self) -> Rc<Promise> {
|
||||
LIVE_REFERENCES.with(|ref r| {
|
||||
let r = r.borrow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue