aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser/async_html.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/servoparser/async_html.rs')
-rw-r--r--components/script/dom/servoparser/async_html.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/servoparser/async_html.rs b/components/script/dom/servoparser/async_html.rs
index a0c1584eba3..9379beb572e 100644
--- a/components/script/dom/servoparser/async_html.rs
+++ b/components/script/dom/servoparser/async_html.rs
@@ -458,7 +458,7 @@ impl Tokenizer {
system_id,
} => {
let doctype = DocumentType::new(
- DOMString::from(String::from(name)),
+ DOMString::from(name),
Some(DOMString::from(public_id)),
Some(DOMString::from(system_id)),
document,