Skip to content

Commit 0bb826e

Browse files
committed
Move lints configuration to manifest
1 parent bb9e12e commit 0bb826e

File tree

9 files changed

+23
-27
lines changed

9 files changed

+23
-27
lines changed

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ members = [
99
"generator",
1010
"generator-rewrite",
1111
]
12+
13+
[workspace.lints.rust]
14+
deprecated_in_future = "warn"
15+
rust_2018_idioms = "warn"
16+
trivial_casts = "warn"
17+
trivial_numeric_casts = "warn"
18+
unused_qualifications = "warn"
19+
20+
[workspace.lints.clippy]
21+
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-window/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![warn(trivial_casts, trivial_numeric_casts)]
2-
31
use std::os::raw::c_char;
42

53
use ash::{

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 & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +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-
)]
102

113
use heck::{ToShoutySnakeCase, ToSnakeCase, ToUpperCamelCase};
124
use itertools::Itertools;

0 commit comments

Comments
 (0)