From 90f205a4658c33c0649a5a95538859746826be99 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 8 Dec 2021 06:09:46 +0000 Subject: [PATCH] standardize crate level lints --- actix-codec/src/lib.rs | 4 ++-- actix-macros/src/lib.rs | 1 + actix-rt/src/lib.rs | 2 +- actix-server/src/lib.rs | 1 + actix-service/src/lib.rs | 4 ++-- actix-tls/src/lib.rs | 3 ++- actix-tracing/src/lib.rs | 1 + actix-utils/src/lib.rs | 2 +- bytestring/src/lib.rs | 2 +- local-channel/src/lib.rs | 2 +- local-waker/src/lib.rs | 2 +- rustfmt.toml | 3 --- 12 files changed, 14 insertions(+), 13 deletions(-) diff --git a/actix-codec/src/lib.rs b/actix-codec/src/lib.rs index 5842fa7b..6914b306 100644 --- a/actix-codec/src/lib.rs +++ b/actix-codec/src/lib.rs @@ -7,8 +7,8 @@ //! [`Sink`]: futures_sink::Sink //! [`Stream`]: futures_core::Stream -#![deny(rust_2018_idioms, nonstandard_style, future_incompatible)] -#![warn(missing_docs)] +#![deny(rust_2018_idioms, nonstandard_style)] +#![warn(future_incompatible, missing_docs)] #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] diff --git a/actix-macros/src/lib.rs b/actix-macros/src/lib.rs index be69b7b0..284f6920 100644 --- a/actix-macros/src/lib.rs +++ b/actix-macros/src/lib.rs @@ -9,6 +9,7 @@ //! See docs for the [`#[test]`](macro@test) macro. #![deny(rust_2018_idioms, nonstandard_style)] +#![warn(future_incompatible)] #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs index 85062e80..7fb2b632 100644 --- a/actix-rt/src/lib.rs +++ b/actix-rt/src/lib.rs @@ -41,7 +41,7 @@ //! In particular, when running a `System`, only `System::block_on` is supported. #![deny(rust_2018_idioms, nonstandard_style)] -#![warn(missing_docs)] +#![warn(future_incompatible, missing_docs)] #![allow(clippy::type_complexity)] #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] diff --git a/actix-server/src/lib.rs b/actix-server/src/lib.rs index 6ac8ba7e..f9b1a992 100644 --- a/actix-server/src/lib.rs +++ b/actix-server/src/lib.rs @@ -1,6 +1,7 @@ //! General purpose TCP server. #![deny(rust_2018_idioms, nonstandard_style)] +#![warn(future_incompatible)] #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs index 12de9f66..96a6b164 100644 --- a/actix-service/src/lib.rs +++ b/actix-service/src/lib.rs @@ -1,8 +1,8 @@ //! See [`Service`] docs for information on this crate's foundational trait. #![no_std] -#![deny(rust_2018_idioms, nonstandard_style, future_incompatible)] -#![warn(missing_docs)] +#![deny(rust_2018_idioms, nonstandard_style)] +#![warn(future_incompatible, missing_docs)] #![allow(clippy::type_complexity)] #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] diff --git a/actix-tls/src/lib.rs b/actix-tls/src/lib.rs index 68ca0e35..39714dca 100644 --- a/actix-tls/src/lib.rs +++ b/actix-tls/src/lib.rs @@ -1,9 +1,10 @@ //! TLS acceptor and connector services for the Actix ecosystem. #![deny(rust_2018_idioms, nonstandard_style)] -#![warn(missing_docs)] +#![warn(future_incompatible, missing_docs)] #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] +// enable unstable doc_cfg feature only on on docs.rs where nightly compiler is used #![cfg_attr(docsrs, feature(doc_cfg))] #[cfg(feature = "openssl")] diff --git a/actix-tracing/src/lib.rs b/actix-tracing/src/lib.rs index fcc1488d..a12f6d05 100644 --- a/actix-tracing/src/lib.rs +++ b/actix-tracing/src/lib.rs @@ -1,6 +1,7 @@ //! Actix tracing - support for tokio tracing with Actix services. #![deny(rust_2018_idioms, nonstandard_style)] +#![warn(future_incompatible)] #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] diff --git a/actix-utils/src/lib.rs b/actix-utils/src/lib.rs index 6d431d52..b02687cb 100644 --- a/actix-utils/src/lib.rs +++ b/actix-utils/src/lib.rs @@ -1,7 +1,7 @@ //! Various utilities used in the Actix ecosystem. #![deny(rust_2018_idioms, nonstandard_style)] -#![warn(missing_docs)] +#![warn(future_incompatible, missing_docs)] #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] diff --git a/bytestring/src/lib.rs b/bytestring/src/lib.rs index ecf21c95..7ab5a291 100644 --- a/bytestring/src/lib.rs +++ b/bytestring/src/lib.rs @@ -2,7 +2,7 @@ #![no_std] #![deny(rust_2018_idioms, nonstandard_style)] -#![warn(missing_docs)] +#![warn(future_incompatible, missing_docs)] extern crate alloc; diff --git a/local-channel/src/lib.rs b/local-channel/src/lib.rs index 98234eda..e3f493ad 100644 --- a/local-channel/src/lib.rs +++ b/local-channel/src/lib.rs @@ -1,7 +1,7 @@ //! Non-thread-safe channels. #![deny(rust_2018_idioms, nonstandard_style)] -#![warn(missing_docs)] +#![warn(future_incompatible, missing_docs)] extern crate alloc; diff --git a/local-waker/src/lib.rs b/local-waker/src/lib.rs index b1911651..6a6a5558 100644 --- a/local-waker/src/lib.rs +++ b/local-waker/src/lib.rs @@ -4,7 +4,7 @@ #![no_std] #![deny(rust_2018_idioms, nonstandard_style)] -#![warn(missing_docs)] +#![warn(future_incompatible, missing_docs)] use core::{cell::Cell, fmt, marker::PhantomData, task::Waker}; diff --git a/rustfmt.toml b/rustfmt.toml index 2e19d167..973e002c 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,5 +1,2 @@ max_width = 96 reorder_imports = true -#wrap_comments = true -#fn_args_density = "Compressed" -#use_small_heuristics = false