Skip to content

Commit

Permalink
Print label in Handle's Debug implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jun 3, 2022
1 parent 482db07 commit b10f2e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/fj-kernel/src/shape/stores.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ where
T: fmt::Debug,
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_tuple("Handle").field(&self.get()).finish()
f.debug_struct("Handle")
.field("shape", &self.store.label.as_deref().unwrap_or("unnamed"))
.field("object", &self.get())
.finish()
}
}

Expand Down

0 comments on commit b10f2e4

Please sign in to comment.