Skip to content

Commit

Permalink
Update the way lints are configured to use Rust's new manifest-lint
Browse files Browse the repository at this point in the history
… feature
  • Loading branch information
stepchowfun committed Nov 17, 2023
1 parent d5020b4 commit 565def8
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ homepage = "https://github.com/stepchowfun/typical"
repository = "https://github.com/stepchowfun/typical"
readme = "README.md"

[lints]
clippy.all = "deny"
clippy.pedantic = "deny"
rust.warnings = "deny"

[dependencies]
colored = "1"
pad = "0.1"
Expand Down
5 changes: 5 additions & 0 deletions benchmarks/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ version = "0.1.0"
authors = ["Stephan Boyer <stephan@stephanboyer.com>"]
edition = "2018"

[lints]
clippy.all = "deny"
clippy.pedantic = "deny"
rust.warnings = "deny"

[dependencies]
2 changes: 0 additions & 2 deletions benchmarks/rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic, warnings)]

mod types;

use {
Expand Down
5 changes: 5 additions & 0 deletions examples/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ version = "0.1.0"
authors = ["Stephan Boyer <stephan@stephanboyer.com>"]
edition = "2018"

[lints]
clippy.all = "deny"
clippy.pedantic = "deny"
rust.warnings = "deny"

[dependencies]
2 changes: 0 additions & 2 deletions examples/rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic, warnings)]

mod types;

use {
Expand Down
5 changes: 5 additions & 0 deletions integration_tests/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ version = "0.1.0"
authors = ["Stephan Boyer <stephan@stephanboyer.com>"]
edition = "2018"

[lints]
clippy.all = "deny"
clippy.pedantic = "deny"
rust.warnings = "deny"

[dependencies]
2 changes: 0 additions & 2 deletions integration_tests/rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic, warnings)]

mod assertions;
mod circular_dependency;
mod comprehensive;
Expand Down
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![deny(clippy::all, clippy::pedantic, warnings)]

mod assertions;
mod count;
mod error;
Expand Down

0 comments on commit 565def8

Please sign in to comment.