Skip to content

Commit ef6aeec

Browse files
committed
fix: suggestions from code review
1 parent 181cf20 commit ef6aeec

File tree

1 file changed

+6
-1
lines changed
  • libs/@local/hashql/core/src/id/bit_vec

1 file changed

+6
-1
lines changed

libs/@local/hashql/core/src/id/bit_vec/finite.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,12 @@ impl<I, T: FiniteBitSetIntegral> Hash for FiniteBitSet<I, T> {
306306

307307
impl<I: Id, T: FiniteBitSetIntegral> Debug for FiniteBitSet<I, T> {
308308
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
309-
write!(fmt, "{:032b}", self.store)
309+
write!(
310+
fmt,
311+
"{:0width$b}",
312+
self.store,
313+
width = (T::MAX_DOMAIN_SIZE as usize)
314+
)
310315
}
311316
}
312317

0 commit comments

Comments
 (0)