From d178e35c34a9106dd6c0a86286ff56dc8b297942 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 17 May 2021 18:52:12 +0300 Subject: Make clippy happy --- src/indieauth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/indieauth.rs') diff --git a/src/indieauth.rs b/src/indieauth.rs index f6bac04..7a2a07e 100644 --- a/src/indieauth.rs +++ b/src/indieauth.rs @@ -126,7 +126,7 @@ impl Drop for IndieAuthMiddleware { // Because apparently you can't run async code from Drop... // This should drop the last reference for the [`cache`], // allowing it to be dropped. - async_std::task::spawn(async move { task.cancel() }); + async_std::task::spawn(async move { task.cancel().await }); } } #[async_trait] -- cgit 1.4.1