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), OfflineAudioContext(OfflineAudioContextOptions),
} }
#[must_root]
#[derive(JSTraceable)] #[derive(JSTraceable)]
#[allow(unrooted_must_root)]
struct DecodeResolver { struct DecodeResolver {
pub promise: Rc<Promise>, pub promise: Rc<Promise>,
pub success_callback: Option<Rc<DecodeSuccessCallback>>, pub success_callback: Option<Rc<DecodeSuccessCallback>>,

View file

@ -629,3 +629,4 @@ macro_rules! handle_potential_webgl_error {
handle_potential_webgl_error!($context, $call, ()); handle_potential_webgl_error!($context, $call, ());
}; };
} }