Fix '#[async_bound]' for fns with no return type.

This commit is contained in:
Sergio Benitez 2024-01-30 20:35:21 -08:00
parent fde9cde8d7
commit 53c5166b6c
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ fn _async_bound(
ReturnType::Type(arrow, ty) => parse_quote_spanned!(ty.span() =>
#arrow impl ::core::future::Future<Output = #ty> + #bounds
),
default@ReturnType::Default => default
default@ReturnType::Default => parse_quote_spanned!(default.span() =>
-> impl ::core::future::Future<Output = ()> + #bounds
),
};
Ok(quote! {