mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Replace most ~"string"s with "string".to_owned().
This commit is contained in:
parent
660f7a016e
commit
25542e3f7e
35 changed files with 206 additions and 206 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue