diff options
Diffstat (limited to 'components/script/dom/messagechannel.rs')
-rw-r--r-- | components/script/dom/messagechannel.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/messagechannel.rs b/components/script/dom/messagechannel.rs index f3df61924a5..a973dccf4de 100644 --- a/components/script/dom/messagechannel.rs +++ b/components/script/dom/messagechannel.rs @@ -20,7 +20,10 @@ pub struct MessageChannel { impl MessageChannel { /// <https://html.spec.whatwg.org/multipage/#dom-messagechannel> #[allow(non_snake_case)] - pub fn Constructor(global: &GlobalScope, proto: Option<HandleObject>) -> DomRoot<MessageChannel> { + pub fn Constructor( + global: &GlobalScope, + proto: Option<HandleObject>, + ) -> DomRoot<MessageChannel> { MessageChannel::new(global, proto) } |