We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00c3218 commit ab43c24Copy full SHA for ab43c24
src/lib.rs
@@ -59,8 +59,9 @@ pub fn context(args: TokenStream, input: TokenStream) -> TokenStream {
59
if input.sig.asyncness.is_some() {
60
match return_ty {
61
syn::ReturnType::Default => {
62
- return syn::Error::new_spanned(return_ty,
63
- "function should return Result").to_compile_error().into()
+ return syn::Error::new_spanned(return_ty, "function should return Result")
+ .to_compile_error()
64
+ .into()
65
}
66
syn::ReturnType::Type(_, return_ty) => {
67
input.block = syn::parse_quote!({
0 commit comments