Replace most ~"string"s with "string".to_owned().

This commit is contained in:
Ms2ger 2014-05-04 09:39:07 +02:00
parent 660f7a016e
commit 25542e3f7e
35 changed files with 206 additions and 206 deletions

View file

@ -49,7 +49,7 @@ pub trait NavigatorMethods {
impl<'a> NavigatorMethods for JSRef<'a, Navigator> {
fn DoNotTrack(&self) -> DOMString {
~"unspecified"
"unspecified".to_owned()
}
fn Vendor(&self) -> DOMString {
@ -61,7 +61,7 @@ impl<'a> NavigatorMethods for JSRef<'a, Navigator> {
}
fn Product(&self) -> DOMString {
~"Gecko"
"Gecko".to_owned()
}
fn ProductSub(&self) -> DOMString {
@ -85,11 +85,11 @@ impl<'a> NavigatorMethods for JSRef<'a, Navigator> {
}
fn AppName(&self) -> DOMString {
~"Netscape" // Like Gecko/Webkit
"Netscape".to_owned() // Like Gecko/Webkit
}
fn GetAppCodeName(&self) -> Fallible<DOMString> {
Ok(~"Mozilla") // Like Gecko/Webkit
Ok("Mozilla".to_owned()) // Like Gecko/Webkit
}
fn GetAppVersion(&self) -> Fallible<DOMString> {