wip: more polish on display

This commit is contained in:
Jonathan Kelley committed 2021-09-13 19:07:15 -04:00
1 parent 238677208e
commit 12afd2b0f2
3 files changed
+127 -130

No files matched your search

+6 -7
View File
@@ -754,13 +754,12 @@ impl Debug for NodeFactory<'_> {
impl Debug for VNode<'_> {
fn fmt(&self, s: &mut Formatter<'_>) -> std::result::Result<(), std::fmt::Error> {
match &self {
VNode::Element(el) => {
//
s.debug_struct("VElement")
.field("name", &el.tag_name)
.field("key", &el.key)
.finish()
}
VNode::Element(el) => s
.debug_struct("VElement")
.field("name", &el.tag_name)
.field("key", &el.key)
.finish(),
VNode::Text(t) => write!(s, "VText {{ text: {} }}", t.text),
VNode::Anchor(_) => write!(s, "VAnchor"),