Skip to content

Commit

Permalink
style: introduce workspace-wide lint tables
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Oct 25, 2024
1 parent 0376881 commit cfffde5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ trycmd = "0.15.0"
platforms.workspace = true
regex = "1"

[lints]
workspace = true

[workspace]
members = ["download"]

Expand Down Expand Up @@ -158,6 +161,9 @@ tracing-subscriber = "0.3.16"
url = "2.4"
walkdir = "2"

[workspace.lints.rust]
rust_2018_idioms = "deny"

[lib]
name = "rustup"
path = "src/lib.rs"
Expand Down
3 changes: 3 additions & 0 deletions download/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ http-body-util = "0.1.0"
hyper = { version = "1.0", default-features = false, features = ["server", "http1"] }
hyper-util = { version = "0.1.1", features = ["tokio"] }
tempfile.workspace = true

[lints]
workspace = true
1 change: 0 additions & 1 deletion download/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! Easy file downloading
#![deny(rust_2018_idioms)]
use std::fs::remove_file;
use std::path::Path;
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![deny(rust_2018_idioms)]
#![allow(
clippy::type_complexity,
clippy::result_large_err, // 288 bytes is our 'large' variant today, which is unlikely to be a performance problem
Expand Down

0 comments on commit cfffde5

Please sign in to comment.