Fix an assortment of issues

This commit is contained in:
Jonathan Turner
2019-12-24 14:26:47 +13:00
parent be7550822c
commit e7fb15be59
7 changed files with 51 additions and 25 deletions

View File

@ -113,7 +113,7 @@ pub fn format_primitive(primitive: &Primitive, field_name: Option<&String>) -> S
}
Primitive::Duration(sec) => format_duration(*sec),
Primitive::Int(i) => i.to_string(),
Primitive::Decimal(decimal) => decimal.to_string(),
Primitive::Decimal(decimal) => format!("{:.4}", decimal),
Primitive::Range(range) => format!(
"{}..{}",
format_primitive(&range.from.0.item, None),