mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
add must root
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
parent
6b7cf15c48
commit
7a8e8bd0ea
1 changed files with 5 additions and 2 deletions
|
@ -407,9 +407,11 @@ impl FromJSValConvertibleRc for Promise {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, JSTraceable, MallocSizeOf)]
|
||||
|
||||
/// The fulfillment handler for the list of promises in
|
||||
/// <https://webidl.spec.whatwg.org/#wait-for-all>.
|
||||
#[derive(JSTraceable, MallocSizeOf)]
|
||||
#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
|
||||
struct WaitForAllFulfillmentHandler {
|
||||
/// The steps to call when all promises are resolved.
|
||||
#[ignore_malloc_size_of = "Rc is hard"]
|
||||
|
@ -461,9 +463,10 @@ impl Callback for WaitForAllFulfillmentHandler {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, JSTraceable, MallocSizeOf)]
|
||||
/// The rejection handler for the list of promises in
|
||||
/// <https://webidl.spec.whatwg.org/#wait-for-all>.
|
||||
#[derive(Clone, JSTraceable, MallocSizeOf)]
|
||||
#[cfg_attr(crown, crown::unrooted_must_root_lint::must_root)]
|
||||
struct WaitForAllRejectionHandler {
|
||||
/// The steps to call if any promise rejects.
|
||||
#[ignore_malloc_size_of = "Rc is hard"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue