mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Replace the remaining to_string calls by into_string calls.
This commit is contained in:
parent
37a97f3273
commit
b6117a57aa
12 changed files with 43 additions and 42 deletions
|
@ -297,7 +297,7 @@ pub fn from_cmdline_args(args: &[String]) -> bool {
|
|||
}
|
||||
};
|
||||
|
||||
let render_api = match opt_match.opt_str("r").unwrap_or("gl".to_string()).as_slice() {
|
||||
let render_api = match opt_match.opt_str("r").unwrap_or("gl".into_string()).as_slice() {
|
||||
"mesa" => RenderApi::Mesa,
|
||||
"gl" => RenderApi::OpenGL,
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue