mirror of https://github.com/rwf2/Rocket.git
Fix '#[async_bound]' for fns with no return type.
This commit is contained in:
parent
fde9cde8d7
commit
53c5166b6c
|
@ -37,7 +37,9 @@ fn _async_bound(
|
||||||
ReturnType::Type(arrow, ty) => parse_quote_spanned!(ty.span() =>
|
ReturnType::Type(arrow, ty) => parse_quote_spanned!(ty.span() =>
|
||||||
#arrow impl ::core::future::Future<Output = #ty> + #bounds
|
#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! {
|
Ok(quote! {
|
||||||
|
|
Loading…
Reference in New Issue