mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
Mark DecodeResolver as must_root
This commit is contained in:
parent
8a6ea00f58
commit
ebcbe2ff7d
2 changed files with 3 additions and 2 deletions
|
@ -51,8 +51,8 @@ pub enum BaseAudioContextOptions {
|
|||
OfflineAudioContext(OfflineAudioContextOptions),
|
||||
}
|
||||
|
||||
#[must_root]
|
||||
#[derive(JSTraceable)]
|
||||
#[allow(unrooted_must_root)]
|
||||
struct DecodeResolver {
|
||||
pub promise: Rc<Promise>,
|
||||
pub success_callback: Option<Rc<DecodeSuccessCallback>>,
|
||||
|
|
|
@ -629,3 +629,4 @@ macro_rules! handle_potential_webgl_error {
|
|||
handle_potential_webgl_error!($context, $call, ());
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue