improve duration print

This commit is contained in:
Jonathan Turner 2019-11-27 15:07:55 +13:00
parent 2e4b0b0b17
commit ddb9d3a864

View file

@ -339,7 +339,7 @@ impl PrettyDebug for FormatInlineShape {
}),
InlineShape::Date(date) => b::primitive(date.humanize()),
InlineShape::Duration(duration) => {
(b::kind("duration") + b::space() + b::primitive(duration)).group()
b::description(Primitive::Duration(*duration).format(None))
}
InlineShape::Path(path) => b::primitive(path.display()),
InlineShape::Binary => b::opaque("<binary>"),