Skip to content

Commit

Permalink
Move lints configuration to manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
filnet committed Nov 19, 2023
1 parent a69414f commit 0e82550
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 26 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@ members = [
"generator-rewrite",
]
resolver = "2"

[workspace.lints.rust]
deprecated_in_future = "warn"
rust_2018_idioms = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_qualifications = "warn"

[workspace.lints.clippy]
use_self = "warn"
3 changes: 3 additions & 0 deletions ash-examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ winit = "0.28.0"
# directly and benefit from the infallible `Entry` constructor.
ash = { path = "../ash", default-features = false, features = ["linked", "debug"] }
ash-window = { path = "../ash-window" }

[lints]
workspace = true
9 changes: 0 additions & 9 deletions ash-examples/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
#![warn(
clippy::use_self,
deprecated_in_future,
rust_2018_idioms,
trivial_casts,
trivial_numeric_casts,
unused_qualifications
)]

use ash::extensions::{
ext::DebugUtils,
khr::{Surface, Swapchain},
Expand Down
4 changes: 4 additions & 0 deletions ash-window/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ ash = { path = "../ash", version = "0.37", default-features = false, features =
[[example]]
name = "winit"
required-features = ["ash/linked"]

[lints.rust]
trivial_casts = "warn"
trivial_numeric_casts = "warn"
3 changes: 3 additions & 0 deletions ash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ no-dev-version = true
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lints]
workspace = true
8 changes: 0 additions & 8 deletions ash/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
#![warn(
clippy::use_self,
deprecated_in_future,
rust_2018_idioms,
trivial_casts,
trivial_numeric_casts,
unused_qualifications
)]
#![allow(
clippy::too_many_arguments,
clippy::missing_safety_doc,
Expand Down
3 changes: 3 additions & 0 deletions generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ vkxml = "0.3"
[dependencies.syn]
version = "1.0"
features = ["full", "extra-traits"]

[lints]
workspace = true
9 changes: 0 additions & 9 deletions generator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
#![recursion_limit = "256"]
#![warn(
clippy::use_self,
deprecated_in_future,
rust_2018_idioms,
trivial_casts,
trivial_numeric_casts,
unused_qualifications
)]

use heck::{ToShoutySnakeCase, ToSnakeCase, ToUpperCamelCase};
use itertools::Itertools;
use nom::{
Expand Down

0 comments on commit 0e82550

Please sign in to comment.