Skip to content

Commit cf80dc7

Browse files
committed
tests/unit: change edition to an int instead of a str, as this is ordered
1 parent a3158ab commit cf80dc7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/test_translator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,11 +508,11 @@ def run(self) -> List[TestOutcome]:
508508
# (if it's generated, it's in the wrong directory and may be different for each transpiled file).
509509
# We could also change things to transpile all `*.c` files at once, but that's more involved.
510510
# This logic needs to stay in sync with `fn emit_rust_toolchain`.
511-
edition = "2021"
511+
edition = 2021
512512
match edition:
513-
case "2021":
513+
case 2021:
514514
toolchain = "nightly-2023-04-15"
515-
case "2024":
515+
case 2024:
516516
toolchain = "nightly-2026-03-03"
517517
rust_toolchain_toml = f"""\
518518
[toolchain]

0 commit comments

Comments
 (0)