Skip to content

Commit ab43c24

Browse files
committed
cargo fmt
1 parent 00c3218 commit ab43c24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ pub fn context(args: TokenStream, input: TokenStream) -> TokenStream {
5959
if input.sig.asyncness.is_some() {
6060
match return_ty {
6161
syn::ReturnType::Default => {
62-
return syn::Error::new_spanned(return_ty,
63-
"function should return Result").to_compile_error().into()
62+
return syn::Error::new_spanned(return_ty, "function should return Result")
63+
.to_compile_error()
64+
.into()
6465
}
6566
syn::ReturnType::Type(_, return_ty) => {
6667
input.block = syn::parse_quote!({

0 commit comments

Comments
 (0)