fix: changed rust edition to 2021

This commit is contained in:
TotallyNot 2025-04-27 13:47:22 +02:00
parent b069c7e493
commit 26043ac318
Signed by: pyrite
GPG key ID: 7F1BA9170CD35D15
4 changed files with 10 additions and 8 deletions

4
Cargo.lock generated
View file

@ -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",

View file

@ -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 }

View file

@ -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 }

View file

@ -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::*;