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]] [[package]]
name = "torn-api" name = "torn-api"
version = "1.0.1" version = "1.0.2"
dependencies = [ dependencies = [
"bon", "bon",
"bytes", "bytes",
@ -2290,7 +2290,7 @@ dependencies = [
[[package]] [[package]]
name = "torn-api-codegen" name = "torn-api-codegen"
version = "0.1.3" version = "0.1.4"
dependencies = [ dependencies = [
"heck", "heck",
"indexmap", "indexmap",

View file

@ -1,8 +1,8 @@
[package] [package]
name = "torn-api-codegen" name = "torn-api-codegen"
authors = ["Pyrit [2111649]"] authors = ["Pyrit [2111649]"]
version = "0.1.3" version = "0.1.4"
edition = "2024" edition = "2021"
description = "Contains the v2 torn API model descriptions and codegen for the bindings" description = "Contains the v2 torn API model descriptions and codegen for the bindings"
license-file = { workspace = true } license-file = { workspace = true }
repository = { workspace = true } repository = { workspace = true }

View file

@ -1,7 +1,7 @@
[package] [package]
name = "torn-api" name = "torn-api"
version = "1.0.1" version = "1.0.2"
edition = "2024" edition = "2021"
description = "Auto-generated bindings for the v2 torn api" description = "Auto-generated bindings for the v2 torn api"
license-file = { workspace = true } license-file = { workspace = true }
repository = { 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 serde::Deserialize;
use crate::{ use crate::{
@ -138,7 +140,7 @@ impl Executor for ReqwestClient {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use crate::{ApiError, Error, scopes::test::test_client}; use crate::{scopes::test::test_client, ApiError, Error};
use super::*; use super::*;