Skip to content

Commit

Permalink
Switch to rust 1.77
Browse files Browse the repository at this point in the history
  • Loading branch information
rlebran committed Aug 4, 2024
1 parent 70f4bae commit 662479f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ edition = "2021"
repository = "https://github.com/netwo-io/apistos"
documentation = "https://docs.rs/apistos/"
license = "MIT OR Apache-2.0"
rust-version = "1.75"
rust-version = "1.77"
publish = true
version = "1.0.0-pre-release.3"

Expand Down Expand Up @@ -70,7 +70,6 @@ unused_import_braces = "warn"
unused-lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
unused_tuple_struct_fields = "warn"

[workspace.lints.clippy]
bool_to_int_with_if = "warn"
Expand Down
2 changes: 1 addition & 1 deletion apistos-gen-test/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(deprecated)]
#![allow(dead_code)]
#![allow(clippy::expect_used)]
#![allow(unused_tuple_struct_fields)]
#![allow(dead_code)]

#[cfg(test)]
pub(crate) mod tests;
Expand Down
2 changes: 1 addition & 1 deletion apistos-gen-test/src/tests/api_operation_oas_3_0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ fn api_operation_root_vec() {
#[test]
fn api_operation_actix_web_grant() {
#[allow(clippy::unused_async)]
async fn extract(_req: &ServiceRequest) -> Result<HashSet<String>, Error> {
async fn extract(_: &ServiceRequest) -> Result<HashSet<String>, Error> {
Ok(Default::default())
}

Expand Down
2 changes: 1 addition & 1 deletion apistos-gen-test/src/tests/api_operation_oas_3_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ fn api_operation_root_vec() {
#[test]
fn api_operation_actix_web_grant() {
#[allow(clippy::unused_async)]
async fn extract(_req: &ServiceRequest) -> Result<HashSet<String>, Error> {
async fn extract(_: &ServiceRequest) -> Result<HashSet<String>, Error> {
Ok(Default::default())
}

Expand Down
4 changes: 2 additions & 2 deletions apistos/tests/default_parameters_oas_3_0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async fn default_parameters() {
plap: String,
}

#[allow(unused_tuple_struct_fields)]
#[allow(dead_code)]
#[derive(Clone, Debug, JsonSchema, ApiHeader)]
#[openapi_header(
name = "X-Env-Complex",
Expand All @@ -59,7 +59,7 @@ async fn default_parameters() {
)]
struct SomeComplexHeader(TestHeaderStruct);

#[allow(unused_tuple_struct_fields)]
#[allow(dead_code)]
#[derive(Clone, Debug, JsonSchema, ApiHeader)]
#[openapi_header(
name = "X-Env",
Expand Down
4 changes: 2 additions & 2 deletions apistos/tests/default_parameters_oas_3_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async fn default_parameters() {
plap: String,
}

#[allow(unused_tuple_struct_fields)]
#[allow(dead_code)]
#[derive(Clone, Debug, JsonSchema, ApiHeader)]
#[openapi_header(
name = "X-Env-Complex",
Expand All @@ -59,7 +59,7 @@ async fn default_parameters() {
)]
struct SomeComplexHeader(TestHeaderStruct);

#[allow(unused_tuple_struct_fields)]
#[allow(dead_code)]
#[derive(Clone, Debug, JsonSchema, ApiHeader)]
#[openapi_header(
name = "X-Env",
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.75.0
1.77.0

0 comments on commit 662479f

Please sign in to comment.