From bfbba4e6054ae3a48cfda69dee99b43f2e95e4fd Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 17 Jul 2019 16:13:36 +0200 Subject: [PATCH] tests: use an async block instead of an async closure Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/tests/basic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-api-macro/tests/basic.rs b/proxmox-api-macro/tests/basic.rs index 43ad27c5..5b4f62d0 100644 --- a/proxmox-api-macro/tests/basic.rs +++ b/proxmox-api-macro/tests/basic.rs @@ -75,9 +75,9 @@ async fn get_loopback(param: String) -> Result { returns: String })] fn non_async_test(param: String) -> proxmox::api::ApiFuture { - Box::pin((async move || { + Box::pin(async { proxmox::api::IntoApiOutput::into_api_output(param) - })()) + }) } proxmox_api_macro::router! {