From 9db43f3e8e4c68dfae6286afdbbda9b14eba6ac6 Mon Sep 17 00:00:00 2001 From: OverShifted Date: Fri, 6 Sep 2024 19:49:29 +0330 Subject: [PATCH] Add 'async' to two functions to fix a compile error Signed-off-by: OverShifted --- babysteps/_posts/2023-03-29-thoughts-on-async-closures.md | 2 +- content/blog/2023-03-29-thoughts-on-async-closures.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/babysteps/_posts/2023-03-29-thoughts-on-async-closures.md b/babysteps/_posts/2023-03-29-thoughts-on-async-closures.md index ddca2b04..ad143e40 100644 --- a/babysteps/_posts/2023-03-29-thoughts-on-async-closures.md +++ b/babysteps/_posts/2023-03-29-thoughts-on-async-closures.md @@ -42,7 +42,7 @@ Given that an async function is just a sync function that returns a future, perh ```rust -fn call_twice_async(op: impl FnMut(&str) -> F) +async fn call_twice_async(op: impl FnMut(&str) -> F) where F: Future, { diff --git a/content/blog/2023-03-29-thoughts-on-async-closures.markdown b/content/blog/2023-03-29-thoughts-on-async-closures.markdown index ddca2b04..ad143e40 100644 --- a/content/blog/2023-03-29-thoughts-on-async-closures.markdown +++ b/content/blog/2023-03-29-thoughts-on-async-closures.markdown @@ -42,7 +42,7 @@ Given that an async function is just a sync function that returns a future, perh ```rust -fn call_twice_async(op: impl FnMut(&str) -> F) +async fn call_twice_async(op: impl FnMut(&str) -> F) where F: Future, {