From 27e5394a8c61d842533bc7ec78356de9b395fc3b Mon Sep 17 00:00:00 2001 From: tali Date: Sun, 16 Apr 2023 03:01:20 -0400 Subject: [PATCH] more placement info in Node fmt::Debug --- fish/src/bot/node.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fish/src/bot/node.rs b/fish/src/bot/node.rs index 93b649c..0e927e1 100644 --- a/fish/src/bot/node.rs +++ b/fish/src/bot/node.rs @@ -130,14 +130,14 @@ impl Node { impl core::fmt::Debug for Node { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - write!(f, "Node(rating={}", self.rating)?; + write!(f, "Node {{ rating: {}", self.rating)?; if let Some(pc) = self.root_placement() { - write!(f, ", root_placement={}", pc.ty)?; + write!(f, ", root_placement: {:?}", pc)?; } if !self.queue().is_empty() { - write!(f, ", queue={}", self.queue())?; + write!(f, ", queue: {}", self.queue())?; } - write!(f, ")") + write!(f, " }}") } }