diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-07-11 16:18:25 +0200 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-07-30 14:21:47 +0200 |
commit | ebcbe2ff7da04abb2aa98c4b797975c48af74bbb (patch) | |
tree | 0a03767e559c583bfa34665a6bcffe7bd64dd0d0 /components/script | |
parent | 8a6ea00f584513913b676f77a790121f13bb1c9f (diff) | |
download | servo-ebcbe2ff7da04abb2aa98c4b797975c48af74bbb.tar.gz servo-ebcbe2ff7da04abb2aa98c4b797975c48af74bbb.zip |
Mark DecodeResolver as must_root
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/baseaudiocontext.rs | 2 | ||||
-rw-r--r-- | components/script/dom/macros.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/baseaudiocontext.rs b/components/script/dom/baseaudiocontext.rs index 7010cd76661..4acb4d9f1d9 100644 --- a/components/script/dom/baseaudiocontext.rs +++ b/components/script/dom/baseaudiocontext.rs @@ -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>>, diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs index 7d9172cbe7b..5362b09214e 100644 --- a/components/script/dom/macros.rs +++ b/components/script/dom/macros.rs @@ -628,4 +628,5 @@ macro_rules! handle_potential_webgl_error { ($context:expr, $call:expr) => { handle_potential_webgl_error!($context, $call, ()); }; -}
\ No newline at end of file +} + |