diff options
Diffstat (limited to 'components/script/dom/gainnode.rs')
-rw-r--r-- | components/script/dom/gainnode.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/components/script/dom/gainnode.rs b/components/script/dom/gainnode.rs index 1b4859e28e5..ea81ac58535 100644 --- a/components/script/dom/gainnode.rs +++ b/components/script/dom/gainnode.rs @@ -31,9 +31,10 @@ impl GainNode { context: &BaseAudioContext, options: &GainOptions, ) -> Fallible<GainNode> { - let node_options = options.parent - .unwrap_or(2, ChannelCountMode::Max, - ChannelInterpretation::Speakers); + let node_options = + options + .parent + .unwrap_or(2, ChannelCountMode::Max, ChannelInterpretation::Speakers); let node = AudioNode::new_inherited( AudioNodeInit::GainNode(options.into()), context, @@ -64,7 +65,11 @@ impl GainNode { options: &GainOptions, ) -> Fallible<DomRoot<GainNode>> { let node = GainNode::new_inherited(window, context, options)?; - Ok(reflect_dom_object(Box::new(node), window, GainNodeBinding::Wrap)) + Ok(reflect_dom_object( + Box::new(node), + window, + GainNodeBinding::Wrap, + )) } pub fn Constructor( |