Skip to content

Commit c34f46d

Browse files
committed
Fix Clash parse for cards without elixir cost
1 parent 21a3f49 commit c34f46d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/base/clash.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct ClashCard {
4444
pub max_level: i64,
4545
pub name: String,
4646
pub rarity: String,
47-
pub elixir_cost: i64,
47+
pub elixir_cost: Option<i64>,
4848
}
4949

5050
pub async fn last_battles() -> reqwest::Result<Vec<ClashBattle>> {

0 commit comments

Comments
 (0)