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("parent", &self.parent)
.field("deadline", &self.deadline) .field("deadline", &self.deadline)
.field("cancelled", &self.cancelled) .field("cancelled", &self.cancelled)
.field( .field("values", &self.values)
"values",
&if self.values.is_empty() {
None
} else {
Some("values")
},
)
.finish() .finish()
} }
} }