Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the way lints are configured to use Rust's new manifest-lint feature #446

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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