From 12439a4e8f64cd29885013a94474e7b23af5b1ad Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 25 Nov 2024 09:18:01 -0800 Subject: [PATCH] Switch the code samples to default to 2024 --- book.toml | 2 +- src/destructors.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/book.toml b/book.toml index 18a99728b..ff0c66ae2 100644 --- a/book.toml +++ b/book.toml @@ -16,7 +16,7 @@ smart-punctuation = true "/unsafe-functions.html" = "unsafe-keyword.html" [rust] -edition = "2021" +edition = "2024" [preprocessor.spec] command = "cargo run --release --manifest-path mdbook-spec/Cargo.toml" diff --git a/src/destructors.md b/src/destructors.md index 36c677135..247f44f71 100644 --- a/src/destructors.md +++ b/src/destructors.md @@ -226,7 +226,6 @@ r[destructors.scope.temporary.edition2024] Some examples: - ```rust # struct PrintOnDrop(&'static str); # impl Drop for PrintOnDrop {