From f8e06c49650afd7c9ef749baa72cb8da59880f96 Mon Sep 17 00:00:00 2001 From: Piotr Jawniak Date: Thu, 26 Jun 2014 08:15:14 +0200 Subject: Remove unnecessary to_string calls This commit removes superfluous to_string calls from various places --- src/libtest/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libtest') diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 34e9dce3960..589f605f8d2 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -403,7 +403,7 @@ pub fn parse_opts(args: &[String]) -> Option { let save_metrics = save_metrics.map(|s| Path::new(s)); let test_shard = matches.opt_str("test-shard"); - let test_shard = opt_shard(test_shard.map(|x| x.to_string())); + let test_shard = opt_shard(test_shard); let mut nocapture = matches.opt_present("nocapture"); if !nocapture { @@ -756,7 +756,7 @@ pub fn fmt_metrics(mm: &MetricMap) -> String { .map(|(k,v)| format!("{}: {} (+/- {})", *k, v.value as f64, v.noise as f64)) .collect(); - v.connect(", ").to_string() + v.connect(", ") } pub fn fmt_bench_samples(bs: &BenchSamples) -> String { -- cgit 1.4.1-3-g733a5