提交 3019af6c 编写于 作者: E Erick Tryzelaar

serialize: add json::{Integer,Floating} to parse large integers properly

[breaking-change]
上级 c8835104
此差异已折叠。
......@@ -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)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册