mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2025-01-03 15:34:18 +00:00
Require a impl Iterator
instead of a Vec
in create_cardindex_from_dd_latest
This commit is contained in:
parent
e6fc162578
commit
1c33f250bd
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ pub fn create_cardindex_from_wd() -> card::CardIndex {
|
||||||
/// Create a [`card::CardIndex`] from the latest known data in Data Dragon.
|
/// 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`.
|
/// 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<String>) -> card::CardIndex {
|
pub async fn create_cardindex_from_dd_latest(locale: &str, known_set_codes: impl Iterator<Item = &str>) -> card::CardIndex {
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
let mut index = card::CardIndex::new();
|
let mut index = card::CardIndex::new();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue