summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2025-02-21 13:06:11 +0100
committermo8it <mo8it@proton.me>2025-02-21 13:06:11 +0100
commit1eb6c1e469de2492d823d4739114d8a85cd6660b (patch)
tree717b9b4ccf77f26138d7e188656181c30576c8f5
parent06af3ffc99f803f3be349bbb88bb0ce3b31982e0 (diff)
Update the edition of the solution format checker
-rw-r--r--Cargo.toml2
-rw-r--r--src/dev/check.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index e9b29ec..a3b1d0d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ authors = [
]
repository = "https://github.com/rust-lang/rustlings"
license = "MIT"
-edition = "2024" # On Update: Update the edition of the `rustfmt` command that checks the solutions.
+edition = "2024" # On Update: Update the edition of `rustfmt` in `dev check` and `CARGO_TOML` in `dev new`.
rust-version = "1.85"
[workspace.dependencies]
diff --git a/src/dev/check.rs b/src/dev/check.rs
index aacc2f4..c89c4eb 100644
--- a/src/dev/check.rs
+++ b/src/dev/check.rs
@@ -313,7 +313,7 @@ fn check_solutions(
fmt_cmd
.arg("--check")
.arg("--edition")
- .arg("2021")
+ .arg("2024")
.arg("--color")
.arg("always")
.stdin(Stdio::null());