We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ef45f commit e1633cbCopy full SHA for e1633cb
2023/04/src/puzzle.rs
@@ -29,7 +29,7 @@ impl Card {
29
}
30
31
#[derive(Clone, Copy, Debug, Display, FromStr, PartialEq, Eq, Hash)]
32
-pub struct Number(#[from_str(regex = r"\s*(?<>[0-9]+)")] u8);
+pub struct Number(#[from_str(regex = r"\s*(?<>[0-9]+)")] #[display("{:>2}")] u8);
33
34
fn from_str_delimited_by_ascii_whitespace<V, T>(s: &str) -> Result<V, ParseError>
35
where
0 commit comments