diff --git a/2023/04/src/puzzle.rs b/2023/04/src/puzzle.rs index 7ec5f20..7b5801f 100644 --- a/2023/04/src/puzzle.rs +++ b/2023/04/src/puzzle.rs @@ -29,7 +29,7 @@ impl Card { } #[derive(Clone, Copy, Debug, Display, FromStr, PartialEq, Eq, Hash)] -pub struct Number(#[from_str(regex = r"\s*(?<>[0-9]+)")] u8); +pub struct Number(#[from_str(regex = r"\s*(?<>[0-9]+)")] #[display("{:>2}")] u8); fn from_str_delimited_by_ascii_whitespace(s: &str) -> Result where