Allow debugging of context variable values

This commit is contained in:
Tobie Morgan Hitchcock 2022-10-06 07:23:36 +01:00
parent 88100854a8
commit 54b2666685

View file

@ -175,14 +175,7 @@ impl<'a> fmt::Debug for Context<'a> {
.field("parent", &self.parent)
.field("deadline", &self.deadline)
.field("cancelled", &self.cancelled)
.field(
"values",
&if self.values.is_empty() {
None
} else {
Some("values")
},
)
.field("values", &self.values)
.finish()
}
}