From 7db44c0b2893ec9aac41a35fb0516466fec08b15 Mon Sep 17 00:00:00 2001 From: tyranron Date: Fri, 26 Jul 2024 19:13:47 +0300 Subject: [PATCH] Tune lints for 1.80 Rust --- juniper/Cargo.toml | 3 +++ juniper_actix/src/lib.rs | 4 ++-- juniper_axum/src/lib.rs | 1 - juniper_warp/src/subscriptions.rs | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/juniper/Cargo.toml b/juniper/Cargo.toml index 9ff926d43..82ef9d532 100644 --- a/juniper/Cargo.toml +++ b/juniper/Cargo.toml @@ -85,3 +85,6 @@ tokio = { version = "1.0", features = ["macros", "time", "rt-multi-thread"] } name = "bench" harness = false path = "benches/bench.rs" + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly)'] } \ No newline at end of file diff --git a/juniper_actix/src/lib.rs b/juniper_actix/src/lib.rs index 4e8e63315..781062007 100644 --- a/juniper_actix/src/lib.rs +++ b/juniper_actix/src/lib.rs @@ -230,8 +230,8 @@ pub mod subscriptions { /// an authentication based on the parameters provided by a client. /// /// > __WARNING__: This protocol has been deprecated in favor of the - /// [new `graphql-transport-ws` GraphQL over WebSocket Protocol][new], which is - /// provided by the [`graphql_transport_ws_handler()`] function. + /// > [new `graphql-transport-ws` GraphQL over WebSocket Protocol][new], which is + /// > provided by the [`graphql_transport_ws_handler()`] function. /// /// [new]: https://github.com/enisdenjo/graphql-ws/blob/v5.14.0/PROTOCOL.md /// [old]: https://github.com/apollographql/subscriptions-transport-ws/blob/v0.11.0/PROTOCOL.md diff --git a/juniper_axum/src/lib.rs b/juniper_axum/src/lib.rs index 205669a67..20c2099f5 100644 --- a/juniper_axum/src/lib.rs +++ b/juniper_axum/src/lib.rs @@ -67,7 +67,6 @@ pub use self::subscriptions::{graphql_transport_ws, graphql_ws, ws}; /// /// [`extract`]: axum::extract /// [`Handler`]: axum::handler::Handler -#[cfg_attr(text, axum::debug_handler)] pub async fn graphql( Extension(schema): Extension, JuniperRequest(req): JuniperRequest, diff --git a/juniper_warp/src/subscriptions.rs b/juniper_warp/src/subscriptions.rs index 6511c235f..d54597e4f 100644 --- a/juniper_warp/src/subscriptions.rs +++ b/juniper_warp/src/subscriptions.rs @@ -232,8 +232,8 @@ where /// an authentication based on the parameters provided by a client. /// /// > __WARNING__: This protocol has been deprecated in favor of the -/// [new `graphql-transport-ws` GraphQL over WebSocket Protocol][new], which is -/// provided by the [`serve_graphql_transport_ws()`] function. +/// > [new `graphql-transport-ws` GraphQL over WebSocket Protocol][new], which is +/// > provided by the [`serve_graphql_transport_ws()`] function. /// /// [new]: https://github.com/enisdenjo/graphql-ws/blob/v5.14.0/PROTOCOL.md /// [old]: https://github.com/apollographql/subscriptions-transport-ws/blob/v0.11.0/PROTOCOL.md