From 2446aefba1f3c1c90c463aee3cf226257b99b145 Mon Sep 17 00:00:00 2001 From: kageru Date: Mon, 7 Aug 2023 09:38:52 +0200 Subject: [PATCH] zero-pad ID for yugipedia links --- src/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data.rs b/src/data.rs index b986853..dc85d28 100644 --- a/src/data.rs +++ b/src/data.rs @@ -66,7 +66,7 @@ pub struct Set { impl Card { pub fn extended_info(&self) -> Result { let mut s = String::with_capacity(1000); - write!(s, "

RulingsYugipedia

", &self.name, &self.id)?; + write!(s, "

RulingsYugipedia

", &self.name, &self.id)?; s.push_str("

Printings:

"); for printing in &self.card_sets { write!(s, "{}: {} ({})", printing.set_name, printing.set_code, printing.set_rarity)?;