diff --git a/Cargo.lock b/Cargo.lock index 5bdba2f..cb68853 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2271,7 +2271,7 @@ dependencies = [ [[package]] name = "torn-api" -version = "1.0.1" +version = "1.0.2" dependencies = [ "bon", "bytes", @@ -2290,7 +2290,7 @@ dependencies = [ [[package]] name = "torn-api-codegen" -version = "0.1.3" +version = "0.1.4" dependencies = [ "heck", "indexmap", diff --git a/torn-api-codegen/Cargo.toml b/torn-api-codegen/Cargo.toml index 29006ce..9421818 100644 --- a/torn-api-codegen/Cargo.toml +++ b/torn-api-codegen/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "torn-api-codegen" authors = ["Pyrit [2111649]"] -version = "0.1.3" -edition = "2024" +version = "0.1.4" +edition = "2021" description = "Contains the v2 torn API model descriptions and codegen for the bindings" license-file = { workspace = true } repository = { workspace = true } diff --git a/torn-api/Cargo.toml b/torn-api/Cargo.toml index f7cba39..b8f0c20 100644 --- a/torn-api/Cargo.toml +++ b/torn-api/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "torn-api" -version = "1.0.1" -edition = "2024" +version = "1.0.2" +edition = "2021" description = "Auto-generated bindings for the v2 torn api" license-file = { workspace = true } repository = { workspace = true } diff --git a/torn-api/src/executor.rs b/torn-api/src/executor.rs index c0d19b6..8b7b2ab 100644 --- a/torn-api/src/executor.rs +++ b/torn-api/src/executor.rs @@ -1,4 +1,6 @@ -use http::{HeaderMap, HeaderValue, header::AUTHORIZATION}; +use std::future::Future; + +use http::{header::AUTHORIZATION, HeaderMap, HeaderValue}; use serde::Deserialize; use crate::{ @@ -138,7 +140,7 @@ impl Executor for ReqwestClient { #[cfg(test)] mod test { - use crate::{ApiError, Error, scopes::test::test_client}; + use crate::{scopes::test::test_client, ApiError, Error}; use super::*;