mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
servo: Merge #5733 - Remove unnecessary clone in Document constructor (from marcusklaas:issue-5719); r=Manishearth
This closes issue https://github.com/servo/servo/issues/5719. Source-Repo: https://github.com/servo/servo Source-Revision: c3ed0fd57377c617ef877cd685d3248ce37d1710
This commit is contained in:
parent
91c44dc144
commit
150198541e
1 changed files with 1 additions and 1 deletions
|
|
@ -794,7 +794,7 @@ impl Document {
|
||||||
implementation: Default::default(),
|
implementation: Default::default(),
|
||||||
location: Default::default(),
|
location: Default::default(),
|
||||||
content_type: match content_type {
|
content_type: match content_type {
|
||||||
Some(string) => string.clone(),
|
Some(string) => string,
|
||||||
None => match is_html_document {
|
None => match is_html_document {
|
||||||
// https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
|
// https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
|
||||||
IsHTMLDocument::HTMLDocument => "text/html".to_owned(),
|
IsHTMLDocument::HTMLDocument => "text/html".to_owned(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue