tests: use an async block instead of an async closure

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-07-17 16:13:36 +02:00
parent 23e4a1ee3f
commit bfbba4e605

View File

@ -75,9 +75,9 @@ async fn get_loopback(param: String) -> Result<String, Error> {
returns: String
})]
fn non_async_test(param: String) -> proxmox::api::ApiFuture<Bytes> {
Box::pin((async move || {
Box::pin(async {
proxmox::api::IntoApiOutput::into_api_output(param)
})())
})
}
proxmox_api_macro::router! {