Skip to content

Commit e0e4d1e

Browse files
committed
chore: move deny lints to manifests
1 parent b01fbdd commit e0e4d1e

File tree

42 files changed

+95
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+95
-71
lines changed

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,11 @@ awc = { path = "awc" }
5151
# actix-utils = { path = "../actix-net/actix-utils" }
5252
# actix-tls = { path = "../actix-net/actix-tls" }
5353
# actix-server = { path = "../actix-net/actix-server" }
54+
55+
[workspace.lints.rust]
56+
rust_2018_idioms = { level = "deny" }
57+
future_incompatible = { level = "deny" }
58+
nonstandard_style = { level = "deny" }
59+
60+
[workspace.lints.clippy]
61+
# clone_on_ref_ptr = { level = "deny" }

actix-files/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,6 @@ actix-test = "0.1"
5454
actix-web = "4"
5555
env_logger = "0.11"
5656
tempfile = "3.2"
57+
58+
[lints]
59+
workspace = true

actix-files/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
//! .service(Files::new("/static", ".").prefer_utf8(true));
1212
//! ```
1313
14-
#![deny(rust_2018_idioms, nonstandard_style)]
15-
#![warn(future_incompatible, missing_docs, missing_debug_implementations)]
14+
#![warn(missing_docs, missing_debug_implementations)]
1615
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
1716
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
1817
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

actix-http-test/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ tokio = { version = "1.24.2", features = ["sync"] }
5959

6060
[dev-dependencies]
6161
actix-http = "3"
62+
63+
[lints]
64+
workspace = true

actix-http-test/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Various helpers for Actix applications to use during testing.
22
3-
#![deny(rust_2018_idioms, nonstandard_style)]
4-
#![warn(future_incompatible)]
53
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
64
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
75
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

actix-http/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ tls-openssl = { package = "openssl", version = "0.10.55" }
167167
tls-rustls_023 = { package = "rustls", version = "0.23" }
168168
tokio = { version = "1.24.2", features = ["net", "rt", "macros"] }
169169

170+
[lints]
171+
workspace = true
172+
170173
[[example]]
171174
name = "ws"
172175
required-features = ["ws", "rustls-0_23"]

actix-http/src/h1/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,6 @@ where
541541

542542
fn call(&self, (io, addr): (T, Option<net::SocketAddr>)) -> Self::Future {
543543
let conn_data = OnConnectData::from_io(&io, self.on_connect_ext.as_deref());
544-
Dispatcher::new(io, self.flow.clone(), self.cfg.clone(), addr, conn_data)
544+
Dispatcher::new(io, Rc::clone(&self.flow), self.cfg.clone(), addr, conn_data)
545545
}
546546
}

actix-http/src/h2/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ where
434434

435435
H2ServiceHandlerResponse {
436436
state: State::Handshake(
437-
Some(self.flow.clone()),
437+
Some(Rc::clone(&self.flow)),
438438
Some(self.cfg.clone()),
439439
addr,
440440
on_connect_data,

actix-http/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
//! [rustls]: https://crates.io/crates/rustls
2121
//! [trust-dns]: https://crates.io/crates/trust-dns
2222
23-
#![deny(rust_2018_idioms, nonstandard_style)]
24-
#![warn(future_incompatible)]
2523
#![allow(
2624
clippy::type_complexity,
2725
clippy::too_many_arguments,

actix-http/src/message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<T: Head> ops::DerefMut for Message<T> {
6666

6767
impl<T: Head> Drop for Message<T> {
6868
fn drop(&mut self) {
69-
T::with_pool(|p| p.release(self.head.clone()))
69+
T::with_pool(|p| p.release(Rc::clone(&self.head)))
7070
}
7171
}
7272

0 commit comments

Comments
 (0)