]> git.lizzy.rs Git - rust.git/commitdiff
Fix issues in libtest
authorAdolfo Ochagavía <aochagavia92@gmail.com>
Sat, 28 Jun 2014 14:37:28 +0000 (16:37 +0200)
committerAdolfo Ochagavía <aochagavia92@gmail.com>
Mon, 30 Jun 2014 19:35:48 +0000 (21:35 +0200)
src/libtest/lib.rs

index 26c9aaed568af47e9bc24fcca5a1a4ecb3efcafe..ec31ffc93f38e8c68c67171d3de5b19c5225ebc8 100644 (file)
@@ -1104,7 +1104,7 @@ fn calc_result(desc: &TestDesc, task_succeeded: bool) -> TestResult {
 
 impl ToJson for Metric {
     fn to_json(&self) -> json::Json {
-        let mut map = box TreeMap::new();
+        let mut map = TreeMap::new();
         map.insert("value".to_string(), json::Number(self.value));
         map.insert("noise".to_string(), json::Number(self.noise));
         json::Object(map)