Remove unnecessary clone in Document constructor

This commit is contained in:
Marcus Klaas 2015-04-17 14:43:45 +02:00
parent 4fd4370a96
commit 5bcf2e0a6c

View file

@ -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(),