Skip to content

Commit f2daa2e

Browse files
Ensure cluster IDs print with a fixed width.
1 parent 7478430 commit f2daa2e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/filesystem/cluster.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@ impl core::fmt::Debug for ClusterId {
3838
write!(f, "ClusterId(")?;
3939
match *self {
4040
Self::INVALID => {
41-
write!(f, "INVALID")?;
41+
write!(f, "{:08}", "INVALID")?;
4242
}
4343
Self::BAD => {
44-
write!(f, "BAD")?;
44+
write!(f, "{:08}", "BAD")?;
4545
}
4646
Self::EMPTY => {
47-
write!(f, "EMPTY")?;
47+
write!(f, "{:08}", "EMPTY")?;
4848
}
4949
Self::ROOT_DIR => {
50-
write!(f, "ROOT_DIR")?;
50+
write!(f, "{:08}", "ROOT")?;
5151
}
5252
Self::END_OF_FILE => {
53-
write!(f, "END_OF_FILE")?;
53+
write!(f, "{:08}", "EOF")?;
5454
}
5555
ClusterId(value) => {
56-
write!(f, "{:#08x}", value)?;
56+
write!(f, "{:08x}", value)?;
5757
}
5858
}
5959
write!(f, ")")?;

0 commit comments

Comments
 (0)