Skip to content

Commit

Permalink
Switch to Cargo.toml based lint configuration (#175)
Browse files Browse the repository at this point in the history
As of the Cargo included in Rust 1.74, lints can now be configured in
`Cargo.toml` across whole crates/workspaces:
https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html
https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-lints-section

Since this feature requires Rust 1.74, the MSRV has also been bumped.

GUS-W-14523770.
  • Loading branch information
edmorley authored Nov 20, 2023
1 parent aaea687 commit 634f458
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "languages-github-actions"
description = "GitHub Actions for the Languages Team"
version = "0.0.1"
repository = "https://github.com/heroku/languages-github-actions.git"
rust-version = "1.66"
rust-version = "1.74"
edition = "2021"
publish = false

Expand All @@ -14,6 +14,12 @@ path = "src/main.rs"
[profile.release]
strip = true

[lints.rust]
unused_crate_dependencies = "warn"

[lints.clippy]
pedantic = "warn"

[dependencies]
chrono = "0.4"
clap = { version = "4", default-features = false, features = [
Expand Down
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![warn(clippy::pedantic)]
#![warn(unused_crate_dependencies)]

use crate::commands::generate_buildpack_matrix::command::GenerateBuildpackMatrixArgs;
use crate::commands::generate_changelog::command::GenerateChangelogArgs;
use crate::commands::prepare_release::command::PrepareReleaseArgs;
Expand Down

0 comments on commit 634f458

Please sign in to comment.