From 1c33f250bd3199347e42d1f00bcc31756451e8eb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 24 Mar 2023 13:24:29 +0100 Subject: [PATCH] Require a `impl Iterator` instead of a `Vec` in `create_cardindex_from_dd_latest` --- src/data/setbundle/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/setbundle/mod.rs b/src/data/setbundle/mod.rs index 34e823f..30e5a98 100644 --- a/src/data/setbundle/mod.rs +++ b/src/data/setbundle/mod.rs @@ -155,7 +155,7 @@ pub fn create_cardindex_from_wd() -> card::CardIndex { /// Create a [`card::CardIndex`] from the latest known data in Data Dragon. /// /// This function tries to load data from `https://dd.b.pvp.net/latest`. -pub async fn create_cardindex_from_dd_latest(locale: &str, known_set_codes: &Vec) -> card::CardIndex { +pub async fn create_cardindex_from_dd_latest(locale: &str, known_set_codes: impl Iterator) -> card::CardIndex { let client = reqwest::Client::new(); let mut index = card::CardIndex::new();