From 72e75a795f12ec6a463b0c254ede74d0148cf041 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 31 Jul 2022 10:21:54 +0200 Subject: [PATCH] Use `String` instead of a `char` array for `card_code` --- Cargo.toml | 3 ++- src/data/schema.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 722324f..c3e0825 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,4 +12,5 @@ teloxide = "0.10.1" tokio = { version = "1.20.1", features = ["rt-multi-thread", "macros"] } log = "0.4.17" pretty_env_logger = "0.4.0" -glob = "0.3.0" \ No newline at end of file +glob = "0.3.0" +itertools = "0.10.2" diff --git a/src/data/schema.rs b/src/data/schema.rs index d258400..642f746 100644 --- a/src/data/schema.rs +++ b/src/data/schema.rs @@ -41,7 +41,7 @@ pub struct Card { /// Localized name of the card. name: String, /// Unique seven-character identifier of the card. - card_code: [char; 7], + card_code: String, /// List of keywords of this card, with their localized names. keywords: Vec,