Skip to content

Commit

Permalink
chore(build): Satiate clippy and its new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jul 25, 2024
1 parent 5846f41 commit 13d3538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ strum_macros = "0.26"
assert_cmd = "2.0"
predicates = "3.1"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(build)'] }

[package.metadata.git-cliff.git]
protect_breaking_commits = true
commit_parsers = [
Expand Down
1 change: 1 addition & 0 deletions build-aux/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ include!("../src/cli.rs");

fn main() {
println!("cargo:rustc-cfg=build");
println!("cargo:rustc-check-cfg=cfg(build)");
if let Ok(val) = env::var("AUTOTOOLS_DEPENDENCIES") {
for dependency in val.split(' ') {
println!("cargo:rerun-if-changed={dependency}");
Expand Down

0 comments on commit 13d3538

Please sign in to comment.