diff --git a/src/id.rs b/src/id.rs index 3627adc1..ee376d1e 100644 --- a/src/id.rs +++ b/src/id.rs @@ -44,7 +44,7 @@ impl Id { impl Debug for Id { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(f, "Id({})", self.as_u32()) + write!(f, "Id({:x})", self.as_u32()) } } diff --git a/src/ingredient.rs b/src/ingredient.rs index 85594e86..886d4362 100644 --- a/src/ingredient.rs +++ b/src/ingredient.rs @@ -129,8 +129,8 @@ pub(crate) fn fmt_index( fmt: &mut fmt::Formatter<'_>, ) -> fmt::Result { if let Some(i) = id { - write!(fmt, "{}({})", debug_name, u32::from(i)) + write!(fmt, "{debug_name}({i:?})") } else { - write!(fmt, "{}()", debug_name) + write!(fmt, "{debug_name}()") } }