mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
script: to_string() -> into_string()
This commit is contained in:
parent
475ff4dcb7
commit
e9d1740e19
39 changed files with 152 additions and 152 deletions
|
@ -9,7 +9,7 @@ pub struct NavigatorInfo;
|
|||
|
||||
impl NavigatorInfo {
|
||||
pub fn Product() -> DOMString {
|
||||
"Gecko".to_string()
|
||||
"Gecko".into_string()
|
||||
}
|
||||
|
||||
pub fn TaintEnabled() -> bool {
|
||||
|
@ -17,21 +17,21 @@ impl NavigatorInfo {
|
|||
}
|
||||
|
||||
pub fn AppName() -> DOMString {
|
||||
"Netscape".to_string() // Like Gecko/Webkit
|
||||
"Netscape".into_string() // Like Gecko/Webkit
|
||||
}
|
||||
|
||||
pub fn AppCodeName() -> DOMString {
|
||||
"Mozilla".to_string()
|
||||
"Mozilla".into_string()
|
||||
}
|
||||
|
||||
pub fn Platform() -> DOMString {
|
||||
"".to_string()
|
||||
"".into_string()
|
||||
}
|
||||
|
||||
pub fn UserAgent() -> DOMString {
|
||||
match opts::get().user_agent {
|
||||
Some(ref user_agent) => user_agent.clone(),
|
||||
None => "".to_string(),
|
||||
None => "".into_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue