diff --git a/proxmox-api-macro/src/api_macro/function.rs b/proxmox-api-macro/src/api_macro/function.rs index 4d8a30e7..a356a9f5 100644 --- a/proxmox-api-macro/src/api_macro/function.rs +++ b/proxmox-api-macro/src/api_macro/function.rs @@ -255,13 +255,13 @@ pub fn handle_function( // `async fn`, since an `async fn` cannot appear as a return type :( impl ::std::ops::Deref for #struct_name { type Target = fn(#inputs) -> ::std::pin::Pin + dyn ::std::future::Future + Send >>; fn deref(&self) -> &Self::Target { const FUNC: fn(#inputs) -> ::std::pin::Pin>> = |#inputs| { + > + Send>> = |#inputs| { Box::pin(#struct_name::#impl_checked_ident(#passed_args)) }; &FUNC