aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/textencoder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/textencoder.rs')
-rw-r--r--components/script/dom/textencoder.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/textencoder.rs b/components/script/dom/textencoder.rs
index caf0cdb3699..86d65fa9111 100644
--- a/components/script/dom/textencoder.rs
+++ b/components/script/dom/textencoder.rs
@@ -34,7 +34,10 @@ impl TextEncoder {
// https://encoding.spec.whatwg.org/#dom-textencoder
#[allow(non_snake_case)]
- pub fn Constructor(global: &GlobalScope, proto: Option<HandleObject>) -> Fallible<DomRoot<TextEncoder>> {
+ pub fn Constructor(
+ global: &GlobalScope,
+ proto: Option<HandleObject>,
+ ) -> Fallible<DomRoot<TextEncoder>> {
Ok(TextEncoder::new(global, proto))
}
}