diff options
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 46e2ca03ef6..ef6ad80512c 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -1103,8 +1103,8 @@ fn calc_result(desc: &TestDesc, task_succeeded: bool) -> TestResult { impl ToJson for Metric { fn to_json(&self) -> json::Json { let mut map = TreeMap::new(); - map.insert("value".to_string(), json::Number(self.value)); - map.insert("noise".to_string(), json::Number(self.noise)); + map.insert("value".to_string(), json::Floating(self.value)); + map.insert("noise".to_string(), json::Floating(self.noise)); json::Object(map) } } |
