From 9d60bef115a2e3d0381b2aee88c55b2c852dee24 Mon Sep 17 00:00:00 2001 From: Matt Harden Date: Sat, 8 Nov 2025 19:49:08 -0800 Subject: [PATCH] Fix the display of Number in 2023 day 4. --- 2023/04/src/puzzle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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