From 311b5341313423d66bcaf604ac8d3978de0a441e Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 30 Jul 2026 14:16:55 +0200 Subject: [PATCH 1/2] Use Rust 2024 for channel example playground --- content/blog/async/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/blog/async/index.md b/content/blog/async/index.md index 862e38fb..b8218301 100644 --- a/content/blog/async/index.md +++ b/content/blog/async/index.md @@ -433,7 +433,7 @@ fn main() { } ``` -([Link to playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=6f134711236a897f8d5b53cd5798fe37)) +([Link to playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=6f134711236a897f8d5b53cd5798fe37)) ## Common Prejudice Against Threads From 61c777be7a5bff73555fa087f484970c30ae9785 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 30 Jul 2026 14:23:47 +0200 Subject: [PATCH 2/2] update channel example in async post --- content/blog/async/index.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/blog/async/index.md b/content/blog/async/index.md index b8218301..7a7bc7ad 100644 --- a/content/blog/async/index.md +++ b/content/blog/async/index.md @@ -1,7 +1,7 @@ +++ title = "The State of Async Rust: Runtimes" date = 2024-02-21 -updated = 2026-05-09 +updated = 2026-07-30 draft = false template = "article.html" [extra] @@ -428,13 +428,12 @@ fn main() { // Receive messages from the channel for received in rx { - println!("Got: {:?}", received); + println!("Got: {received:?}"); } } ``` -([Link to playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=6f134711236a897f8d5b53cd5798fe37)) - +([Link to playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=fdaf503d054930dacf5b0a921ddb942d)) ## Common Prejudice Against Threads