mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-02 16:28:14 +00:00
tests: use an async block instead of an async closure
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
23e4a1ee3f
commit
bfbba4e605
@ -75,9 +75,9 @@ async fn get_loopback(param: String) -> Result<String, Error> {
|
|||||||
returns: String
|
returns: String
|
||||||
})]
|
})]
|
||||||
fn non_async_test(param: String) -> proxmox::api::ApiFuture<Bytes> {
|
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::IntoApiOutput::into_api_output(param)
|
||||||
})())
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
proxmox_api_macro::router! {
|
proxmox_api_macro::router! {
|
||||||
|
Loading…
Reference in New Issue
Block a user