mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove unnecessary clone in Document constructor
This commit is contained in:
parent
4fd4370a96
commit
5bcf2e0a6c
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…
Add table
Add a link
Reference in a new issue