Fix issues in libtest
This commit is contained in:
parent
2f16d9ef00
commit
903759e611
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user