From bc9d840fe0e9cc01b541dd7980c6663c2476dd81 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 21 Mar 2023 15:03:10 +0100 Subject: [PATCH] Fully remove `fetch` feature --- src/data/corebundle/mod.rs | 2 -- src/data/setbundle/mod.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/data/corebundle/mod.rs b/src/data/corebundle/mod.rs index 0caf6ba..4dbdedc 100644 --- a/src/data/corebundle/mod.rs +++ b/src/data/corebundle/mod.rs @@ -45,7 +45,6 @@ impl CoreBundle { } /// Fetch from `base_url` the Core Bundle data with the given `locale`. - #[cfg(feature = "fetch")] pub async fn fetch(client: &reqwest::Client, base_url: &str, locale: &str) -> LoadingResult { let globals = client .get(format!("{base_url}/core/{locale}/data/globals-{locale}.json")) @@ -82,7 +81,6 @@ pub fn create_globalindexes_from_wd() -> globals::LocalizedGlobalsIndexes { mod tests { macro_rules! test_fetch { ( $id:ident, $version:literal, $locale:literal ) => { - #[cfg(feature = "fetch")] #[tokio::test] async fn $id() { let client = reqwest::Client::new(); diff --git a/src/data/setbundle/mod.rs b/src/data/setbundle/mod.rs index 5d7ffa4..3c5b1b5 100644 --- a/src/data/setbundle/mod.rs +++ b/src/data/setbundle/mod.rs @@ -59,7 +59,6 @@ impl SetBundle { } /// Fetch from `base_url` the Set Bundle data of the given `set` with the given `locale`. - #[cfg(feature = "fetch")] pub async fn fetch(client: &reqwest::Client, base_url: &str, locale: &str, set: &str) -> LoadingResult { let cards = client .get(format!("{base_url}/{set}/{locale}/data/{set}-{locale}.json")) @@ -79,7 +78,6 @@ impl SetBundle { mod tests { macro_rules! test_fetch { ( $id:ident, $version:literal, $locale:literal, $set:literal ) => { - #[cfg(feature = "fetch")] #[tokio::test] async fn $id() { let client = reqwest::Client::new();