From 54b2666685bb4f73213fda1a1ac9f50cc9cc086e Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 6 Oct 2022 07:23:36 +0100 Subject: [PATCH] Allow debugging of context variable values --- lib/src/ctx/context.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/src/ctx/context.rs b/lib/src/ctx/context.rs index b1f73944..a381514f 100644 --- a/lib/src/ctx/context.rs +++ b/lib/src/ctx/context.rs @@ -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() } }