diff --git a/crates/fj-kernel/src/stores/handle.rs b/crates/fj-kernel/src/stores/handle.rs index 5aab0ed23..a86263ff8 100644 --- a/crates/fj-kernel/src/stores/handle.rs +++ b/crates/fj-kernel/src/stores/handle.rs @@ -157,9 +157,16 @@ unsafe impl Sync for Handle {} /// Represents the ID of an object /// /// See [`Handle::id`]. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)] +#[derive(Clone, Copy, Eq, PartialEq, Hash, Ord, PartialOrd)] pub struct ObjectId(u64); +impl fmt::Debug for ObjectId { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let id = self.0; + write!(f, "object id {id:#x}") + } +} + /// A wrapper around [`Handle`] to define equality based on identity /// /// This is a utility type that implements [`Eq`]/[`PartialEq`] and other common