diff --git a/actix-cors/src/builder.rs b/actix-cors/src/builder.rs index 1852a54ad..052d490d1 100644 --- a/actix-cors/src/builder.rs +++ b/actix-cors/src/builder.rs @@ -58,7 +58,7 @@ static ALL_METHODS_SET: Lazy> = Lazy::new(|| { /// server will fail to start up or serve requests. /// /// # Example -/// ```rust +/// ``` /// use actix_cors::Cors; /// use actix_web::http::header; /// diff --git a/actix-cors/src/lib.rs b/actix-cors/src/lib.rs index 56c7f23fd..9e881ceaa 100644 --- a/actix-cors/src/lib.rs +++ b/actix-cors/src/lib.rs @@ -7,7 +7,7 @@ //! This CORS middleware automatically handles `OPTIONS` preflight requests. //! //! # Example -//! ```rust,no_run +//! ```no_run //! use actix_cors::Cors; //! use actix_web::{get, http, web, App, HttpRequest, HttpResponse, HttpServer}; //! @@ -43,7 +43,7 @@ #![forbid(unsafe_code)] #![deny(rust_2018_idioms, nonstandard_style)] -#![warn(missing_docs, missing_debug_implementations)] +#![warn(future_incompatible, missing_docs, missing_debug_implementations)] #![doc(html_logo_url = "https://actix.rs/img/logo.png")] #![doc(html_favicon_url = "https://actix.rs/favicon.ico")] diff --git a/actix-identity/src/lib.rs b/actix-identity/src/lib.rs index 98466cae6..24391358a 100644 --- a/actix-identity/src/lib.rs +++ b/actix-identity/src/lib.rs @@ -45,6 +45,7 @@ //! ``` #![deny(rust_2018_idioms, nonstandard_style)] +#![warn(future_incompatible)] use std::future::Future; diff --git a/actix-protobuf/src/lib.rs b/actix-protobuf/src/lib.rs index a03a9fdc2..387abe926 100644 --- a/actix-protobuf/src/lib.rs +++ b/actix-protobuf/src/lib.rs @@ -1,5 +1,6 @@ #![forbid(unsafe_code)] #![deny(rust_2018_idioms, nonstandard_style)] +#![warn(future_incompatible)] use std::{ fmt, diff --git a/actix-redis/src/lib.rs b/actix-redis/src/lib.rs index a582583f5..c2e7187f6 100644 --- a/actix-redis/src/lib.rs +++ b/actix-redis/src/lib.rs @@ -1,6 +1,7 @@ //! Redis integration for Actix and session store for Actix Web. -#![deny(rust_2018_idioms)] +#![deny(rust_2018_idioms, nonstandard_style)] +#![warn(future_incompatible)] mod redis; pub use redis::{Command, RedisActor}; diff --git a/actix-session/src/lib.rs b/actix-session/src/lib.rs index 108193868..ee375b56d 100644 --- a/actix-session/src/lib.rs +++ b/actix-session/src/lib.rs @@ -40,7 +40,7 @@ //! ``` #![deny(rust_2018_idioms, nonstandard_style)] -#![warn(missing_docs)] +#![warn(future_incompatible, missing_docs)] use std::{ cell::{Ref, RefCell}, diff --git a/actix-web-httpauth/src/lib.rs b/actix-web-httpauth/src/lib.rs index f61ac50cd..929bc95d7 100644 --- a/actix-web-httpauth/src/lib.rs +++ b/actix-web-httpauth/src/lib.rs @@ -16,7 +16,8 @@ //! [Middleware]: ./middleware #![forbid(unsafe_code)] -#![deny(missing_docs, nonstandard_style, rust_2018_idioms)] +#![deny(rust_2018_idioms, nonstandard_style)] +#![warn(future_incompatible, missing_docs)] pub mod extractors; pub mod headers;