Skip to content

Commit e1633cb

Browse files
committed
Fix the display of Number in 2023 day 4.
1 parent e5ef45f commit e1633cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2023/04/src/puzzle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl Card {
2929
}
3030

3131
#[derive(Clone, Copy, Debug, Display, FromStr, PartialEq, Eq, Hash)]
32-
pub struct Number(#[from_str(regex = r"\s*(?<>[0-9]+)")] u8);
32+
pub struct Number(#[from_str(regex = r"\s*(?<>[0-9]+)")] #[display("{:>2}")] u8);
3333

3434
fn from_str_delimited_by_ascii_whitespace<V, T>(s: &str) -> Result<V, ParseError>
3535
where

0 commit comments

Comments
 (0)