aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/opts.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-12-27 16:48:27 +0100
committerMs2ger <ms2ger@gmail.com>2014-12-31 10:34:44 +0100
commitb6117a57aae0fe39e64417ba9b8afdb2f701c9ef (patch)
treea071f05b702f07a86b6745119467b9e5aca13977 /components/util/opts.rs
parent37a97f3273c442fa59a3f65e8300a2527b004036 (diff)
downloadservo-b6117a57aae0fe39e64417ba9b8afdb2f701c9ef.tar.gz
servo-b6117a57aae0fe39e64417ba9b8afdb2f701c9ef.zip
Replace the remaining to_string calls by into_string calls.
Diffstat (limited to 'components/util/opts.rs')
-rw-r--r--components/util/opts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/util/opts.rs b/components/util/opts.rs
index 1689321fa6e..6bd1882b94e 100644
--- a/components/util/opts.rs
+++ b/components/util/opts.rs
@@ -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,
_ => {