Skip to content

Commit ec66754

Browse files
committed
standardize crate level lints
1 parent e636af0 commit ec66754

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

actix-cors/src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static ALL_METHODS_SET: Lazy<HashSet<Method>> = Lazy::new(|| {
5858
/// server will fail to start up or serve requests.
5959
///
6060
/// # Example
61-
/// ```rust
61+
/// ```
6262
/// use actix_cors::Cors;
6363
/// use actix_web::http::header;
6464
///

actix-cors/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! This CORS middleware automatically handles `OPTIONS` preflight requests.
88
//!
99
//! # Example
10-
//! ```rust,no_run
10+
//! ```no_run
1111
//! use actix_cors::Cors;
1212
//! use actix_web::{get, http, web, App, HttpRequest, HttpResponse, HttpServer};
1313
//!
@@ -43,7 +43,7 @@
4343
4444
#![forbid(unsafe_code)]
4545
#![deny(rust_2018_idioms, nonstandard_style)]
46-
#![warn(missing_docs, missing_debug_implementations)]
46+
#![warn(future_incompatible, missing_docs, missing_debug_implementations)]
4747
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
4848
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
4949

actix-identity/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
//! ```
4646
4747
#![deny(rust_2018_idioms, nonstandard_style)]
48+
#![warn(future_incompatible)]
4849

4950
use std::future::Future;
5051

actix-protobuf/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![forbid(unsafe_code)]
22
#![deny(rust_2018_idioms, nonstandard_style)]
3+
#![warn(future_incompatible)]
34

45
use std::{
56
fmt,

actix-redis/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Redis integration for Actix and session store for Actix Web.
22
3-
#![deny(rust_2018_idioms)]
3+
#![deny(rust_2018_idioms, nonstandard_style)]
4+
#![warn(future_incompatible)]
45

56
mod redis;
67
pub use redis::{Command, RedisActor};

actix-session/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
//! ```
4141
4242
#![deny(rust_2018_idioms, nonstandard_style)]
43-
#![warn(missing_docs)]
43+
#![warn(future_incompatible, missing_docs)]
4444

4545
use std::{
4646
cell::{Ref, RefCell},

actix-web-httpauth/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
//! [Middleware]: ./middleware
1717
1818
#![forbid(unsafe_code)]
19-
#![deny(missing_docs, nonstandard_style, rust_2018_idioms)]
19+
#![deny(rust_2018_idioms, nonstandard_style)]
20+
#![warn(future_incompatible, missing_docs)]
2021

2122
pub mod extractors;
2223
pub mod headers;

0 commit comments

Comments
 (0)