mirror of
https://github.com/servo/servo.git
synced 2025-10-12 14:30:25 +01:00
Upgrade Rust.
This commit is contained in:
parent
2ae671b5aa
commit
629c4c6afe
148 changed files with 992 additions and 967 deletions
|
@ -48,10 +48,10 @@ impl<'a> DOMParserMethods for JSRef<'a, DOMParser> {
|
|||
let owner = self.owner.root();
|
||||
match ty {
|
||||
Text_html => {
|
||||
Ok(Document::new(&owner.root_ref(), None, HTMLDocument, Some("text/html".to_owned())))
|
||||
Ok(Document::new(&owner.root_ref(), None, HTMLDocument, Some("text/html".to_string())))
|
||||
}
|
||||
Text_xml => {
|
||||
Ok(Document::new(&owner.root_ref(), None, NonHTMLDocument, Some("text/xml".to_owned())))
|
||||
Ok(Document::new(&owner.root_ref(), None, NonHTMLDocument, Some("text/xml".to_string())))
|
||||
}
|
||||
_ => {
|
||||
Err(FailureUnknown)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue