Show crate version in debug output
This commit is contained in:
parent
8744e05372
commit
c2920b507b
1 changed files with 6 additions and 0 deletions
|
@ -30,6 +30,12 @@ impl<'a> Debug<'a> {
|
|||
let mut table = Table::new();
|
||||
table.set_format(FormatBuilder::new().padding(0, 2).build());
|
||||
|
||||
// The crate version
|
||||
table.add_row(Row::new(vec![
|
||||
Cell::new("Version:"),
|
||||
Cell::new(crate_version!()),
|
||||
]));
|
||||
|
||||
// The default host
|
||||
table.add_row(Row::new(vec![
|
||||
Cell::new("Host:"),
|
||||
|
|
Loading…
Add table
Reference in a new issue