diff options
Diffstat (limited to 'components/script/dom/analysernode.rs')
-rw-r--r-- | components/script/dom/analysernode.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/analysernode.rs b/components/script/dom/analysernode.rs index 6d447e0a9f6..7af43192b19 100644 --- a/components/script/dom/analysernode.rs +++ b/components/script/dom/analysernode.rs @@ -37,7 +37,7 @@ pub(crate) struct AnalyserNode { } impl AnalyserNode { - #[allow(crown::unrooted_must_root)] + #[cfg_attr(crown, allow(crown::unrooted_must_root))] pub(crate) fn new_inherited( _: &Window, context: &BaseAudioContext, @@ -100,7 +100,7 @@ impl AnalyserNode { Self::new_with_proto(window, None, context, options, can_gc) } - #[allow(crown::unrooted_must_root)] + #[cfg_attr(crown, allow(crown::unrooted_must_root))] pub(crate) fn new_with_proto( window: &Window, proto: Option<HandleObject>, |