Skip to content

Commit 235e1a4

Browse files
committed
Move lint rule configuration into Cargo.toml file
1 parent 9d0b949 commit 235e1a4

File tree

12 files changed

+27
-10
lines changed

12 files changed

+27
-10
lines changed

Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ default-run = "server"
1111
[workspace]
1212
members = ["crates_io_*"]
1313

14+
[workspace.lints.rust]
15+
rust_2018_idioms = "warn"
16+
17+
[workspace.lints.clippy]
18+
all = "warn"
19+
20+
[lints]
21+
workspace = true
22+
1423
[profile.release]
1524
opt-level = 2
1625

crates_io_env_vars/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "0.0.0"
44
license = "MIT OR Apache-2.0"
55
edition = "2021"
66

7+
[lints]
8+
workspace = true
9+
710
[dependencies]
811
anyhow = "=1.0.75"
912
dotenvy = "=0.15.7"

crates_io_index/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ repository = "https://github.com/rust-lang/crates.io"
66
description = "crates.io package index utilities"
77
edition = "2021"
88

9+
[lints]
10+
workspace = true
11+
912
[lib]
1013
path = "lib.rs"
1114

crates_io_markdown/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ repository = "https://github.com/rust-lang/crates.io"
66
description = "crates.io markdown renderer"
77
edition = "2021"
88

9+
[lints]
10+
workspace = true
11+
912
[lib]
1013
path = "lib.rs"
1114

crates_io_smoke_test/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "0.0.0"
44
license = "MIT OR Apache-2.0"
55
edition = "2021"
66

7+
[lints]
8+
workspace = true
9+
710
[dependencies]
811
anyhow = "=1.0.75"
912
bytes = "=1.5.0"

crates_io_tarball/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "0.0.0"
44
license = "MIT OR Apache-2.0"
55
edition = "2021"
66

7+
[lints]
8+
workspace = true
9+
710
[features]
811
builder = []
912

crates_io_test_db/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version = "0.0.0"
44
license = "MIT OR Apache-2.0"
55
edition = "2021"
66

7+
[lints]
8+
workspace = true
9+
710
[dependencies]
811
crates_io_env_vars = { path = "../crates_io_env_vars" }
912
diesel = { version = "=2.1.4", features = ["postgres", "r2d2"] }

src/bin/background-worker.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//! Usage:
1111
//! cargo run --bin background-worker
1212
13-
#![warn(clippy::all, rust_2018_idioms)]
14-
1513
#[macro_use]
1614
extern crate tracing;
1715

src/bin/crates-admin.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![warn(clippy::all, rust_2018_idioms)]
2-
31
#[macro_use]
42
extern crate tracing;
53

src/bin/monitor.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
//! Usage:
55
//! cargo run --bin monitor
66
7-
#![warn(clippy::all, rust_2018_idioms)]
8-
97
use anyhow::Result;
108
use crates_io::worker::jobs;
119
use crates_io::worker::swirl::BackgroundJob;

0 commit comments

Comments
 (0)