mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
This branch improves the `fmt::Debug` implementation for `Metadata`, and adds `fmt::Display` implementations for `FieldSet` and `ValueSet`. When formatting a `Metadata`, only present fields are formatted --- if optional fields, such as the file, line number, and module path are `None`, they will be excluded. In addition, `Metadata` now formats its `FieldSet` using `FieldSet`'s `fmt::Display` implementation, which is a bit less noisy. Finally, the `Debug` output for `Metadata` now includes the callsite that the metadata originates from. The intention behind these changes is to make the output from failed tests somewhat easier to interpret. Signed-off-by: Eliza Weisman <[email protected]>