Mark DecodeResolver as must_root

This commit is contained in:
Fernando Jiménez Moreno 2018-07-11 16:18:25 +02:00
parent 8a6ea00f58
commit ebcbe2ff7d
2 changed files with 3 additions and 2 deletions

View file

@ -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>>,

View file

@ -628,4 +628,5 @@ macro_rules! handle_potential_webgl_error {
($context:expr, $call:expr) => {
handle_potential_webgl_error!($context, $call, ());
};
}
}