Skip to content

Commit

Permalink
Use -Dwarnings in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Dec 6, 2023
1 parent 124467f commit cfba852
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/infra/utils/src/cargo/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ impl CargoWorkspace {
format!(
"build.rustflags = {rustflags}",
rustflags = serde_json::to_string(&[
"--deny",
"warnings",
// Deny any warnings in CI:
"-Dwarnings",
// Lint against leftover `dbg/todo!` macros in CI:
"-Wclippy::dbg_macro",
"-Wclippy::todo"
Expand All @@ -128,7 +128,10 @@ impl CargoWorkspace {
"--config",
format!(
"build.rustdocflags = {rustdocflags}",
rustdocflags = serde_json::to_string(&["--deny", "warnings"])?,
rustdocflags = serde_json::to_string(&[
// Deny any warnings in CI:
"-Dwarnings"
])?,
),
);
}
Expand Down

0 comments on commit cfba852

Please sign in to comment.