Skip to content

Commit 7e06e0c

Browse files
FIX
1 parent 2f25042 commit 7e06e0c

File tree

1 file changed

+3
-3
lines changed
  • codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil

1 file changed

+3
-3
lines changed

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil/Rust.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ private object Commands {
4747
private const val cfgUnstable = "--cfg aws_sdk_unstable"
4848
fun func(s: String, add: String, flag: Boolean): String = if (flag) { "$s $add" } else { s }
4949

50-
fun cargoEnvDWarnings(enableUnstable: Boolean): Map<String, String> {
50+
fun cargoEnvDenyWarnings(enableUnstable: Boolean): Map<String, String> {
5151
return mapOf(
52-
"RUSTFLAGS" to func("-A dead_code", cfgUnstable, enableUnstable),
52+
"RUSTFLAGS" to func("-D warnings", cfgUnstable, enableUnstable),
5353
)
5454
}
5555

56-
fun cargoEnvDDeadCode(enableUnstable: Boolean): Map<String, String> {
56+
fun cargoEnvAllowDeadCode(enableUnstable: Boolean): Map<String, String> {
5757
return mapOf(
5858
"RUSTFLAGS" to func("-A dead_code", cfgUnstable, enableUnstable),
5959
)

0 commit comments

Comments
 (0)