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 5fefc9b
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 14 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]
4 changes: 2 additions & 2 deletions benchmarks/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ fn main() {

assert!(output.status.success());

for line in output.stdout.lines().map(|line| line.unwrap()) {
for line in output.stdout.lines().map(Result::unwrap) {
if !line.is_empty() {
println!("cargo:rerun-if-changed={}", line);
println!("cargo:rerun-if-changed={line}");
}
}
}
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]
4 changes: 2 additions & 2 deletions examples/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ fn main() {

assert!(output.status.success());

for line in output.stdout.lines().map(|line| line.unwrap()) {
for line in output.stdout.lines().map(Result::unwrap) {
if !line.is_empty() {
println!("cargo:rerun-if-changed={}", line);
println!("cargo:rerun-if-changed={line}");
}
}
}
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]
4 changes: 2 additions & 2 deletions integration_tests/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ fn main() {

assert!(output.status.success());

for line in output.stdout.lines().map(|line| line.unwrap()) {
for line in output.stdout.lines().map(Result::unwrap) {
if !line.is_empty() {
println!("cargo:rerun-if-changed={}", line);
println!("cargo:rerun-if-changed={line}");
}
}
}
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 5fefc9b

Please sign in to comment.