Skip to content

Commit 9d4aebd

Browse files
committed
Move lints configuration to manifest
1 parent 33a832f commit 9d4aebd

File tree

8 files changed

+23
-26
lines changed

8 files changed

+23
-26
lines changed

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,13 @@ members = [
1010
"generator-rewrite",
1111
]
1212
resolver = "2"
13+
14+
[workspace.lints.rust]
15+
deprecated_in_future = "warn"
16+
rust_2018_idioms = "warn"
17+
trivial_casts = "warn"
18+
trivial_numeric_casts = "warn"
19+
unused_qualifications = "warn"
20+
21+
[workspace.lints.clippy]
22+
use_self = "warn"

ash-examples/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ winit = "0.28.0"
1414
# directly and benefit from the infallible `Entry` constructor.
1515
ash = { path = "../ash", default-features = false, features = ["linked", "debug"] }
1616
ash-window = { path = "../ash-window" }
17+
18+
[lints]
19+
workspace = true

ash-examples/src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
#![warn(
2-
clippy::use_self,
3-
deprecated_in_future,
4-
rust_2018_idioms,
5-
trivial_casts,
6-
trivial_numeric_casts,
7-
unused_qualifications
8-
)]
9-
101
use ash::extensions::{
112
ext::DebugUtils,
123
khr::{Surface, Swapchain},

ash-window/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ ash = { path = "../ash", version = "0.37", default-features = false, features =
3232
[[example]]
3333
name = "winit"
3434
required-features = ["ash/linked"]
35+
36+
[lints.rust]
37+
trivial_casts = "warn"
38+
trivial_numeric_casts = "warn"

ash/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,6 @@ no-dev-version = true
3939
[package.metadata.docs.rs]
4040
all-features = true
4141
rustdoc-args = ["--cfg", "docsrs"]
42+
43+
[lints]
44+
workspace = true

ash/src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
#![warn(
2-
clippy::use_self,
3-
deprecated_in_future,
4-
rust_2018_idioms,
5-
trivial_casts,
6-
trivial_numeric_casts,
7-
unused_qualifications
8-
)]
91
#![allow(
102
clippy::too_many_arguments,
113
clippy::missing_safety_doc,

generator/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ vkxml = "0.3"
2020
[dependencies.syn]
2121
version = "2.0"
2222
features = ["full", "extra-traits"]
23+
24+
[lints]
25+
workspace = true

generator/src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
#![recursion_limit = "256"]
2-
#![warn(
3-
clippy::use_self,
4-
deprecated_in_future,
5-
rust_2018_idioms,
6-
trivial_casts,
7-
trivial_numeric_casts,
8-
unused_qualifications
9-
)]
10-
112
use heck::{ToShoutySnakeCase, ToSnakeCase, ToUpperCamelCase};
123
use itertools::Itertools;
134
use nom::{

0 commit comments

Comments
 (0)