Skip to content

Commit cfffde5

Browse files
committed
style: introduce workspace-wide lint tables
1 parent 0376881 commit cfffde5

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ trycmd = "0.15.0"
130130
platforms.workspace = true
131131
regex = "1"
132132

133+
[lints]
134+
workspace = true
135+
133136
[workspace]
134137
members = ["download"]
135138

@@ -158,6 +161,9 @@ tracing-subscriber = "0.3.16"
158161
url = "2.4"
159162
walkdir = "2"
160163

164+
[workspace.lints.rust]
165+
rust_2018_idioms = "deny"
166+
161167
[lib]
162168
name = "rustup"
163169
path = "src/lib.rs"

download/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ http-body-util = "0.1.0"
3232
hyper = { version = "1.0", default-features = false, features = ["server", "http1"] }
3333
hyper-util = { version = "0.1.1", features = ["tokio"] }
3434
tempfile.workspace = true
35+
36+
[lints]
37+
workspace = true

download/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//! Easy file downloading
2-
#![deny(rust_2018_idioms)]
32
43
use std::fs::remove_file;
54
use std::path::Path;

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![deny(rust_2018_idioms)]
21
#![allow(
32
clippy::type_complexity,
43
clippy::result_large_err, // 288 bytes is our 'large' variant today, which is unlikely to be a performance problem

0 commit comments

Comments
 (0)