Skip to content

Commit

Permalink
check for missed dbg!() statements
Browse files Browse the repository at this point in the history
This works in our main code, but doesn't catch dbg!() statements in
our build scripts.
  • Loading branch information
dae committed Dec 13, 2021
1 parent eb839f0 commit 0c82185
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rslib/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ rust_test(
"tests/support/**",
]),
rustc_env = _anki_rustc_env,
rustc_flags = [
"-Dclippy::dbg_macro",
],
deps = [
"//rslib/cargo:env_logger",
"//rslib/cargo:linkcheck",
Expand Down
3 changes: 3 additions & 0 deletions rslib/i18n/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ rust_library(
rust_test(
name = "i18n_tests",
crate = ":anki_i18n",
rustc_flags = [
"-Dclippy::dbg_macro",
],
)

rustfmt_test(
Expand Down

0 comments on commit 0c82185

Please sign in to comment.