1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-22 17:44:22 +00:00

Fully remove fetch feature

This commit is contained in:
Steffo 2023-03-21 15:03:10 +01:00
parent a38d04fb5e
commit bc9d840fe0
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 0 additions and 4 deletions

View file

@ -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<Self> {
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();

View file

@ -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<Self> {
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();