Skip to content

Commit

Permalink
Fix '#[async_bound]' for fns with no return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Jan 31, 2024
1 parent fde9cde commit 53c5166
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/codegen/src/attribute/async_bound/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand Down

0 comments on commit 53c5166

Please sign in to comment.