mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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(),
|
||||
location: Default::default(),
|
||||
content_type: match content_type {
|
||||
Some(string) => string.clone(),
|
||||
Some(string) => string,
|
||||
None => match is_html_document {
|
||||
// https://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
|
||||
IsHTMLDocument::HTMLDocument => "text/html".to_owned(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue