fix error with returl value for complex types

This commit is contained in:
vms 2020-07-09 17:18:46 +03:00
parent d5d1207a3d
commit cc2b8249fc

View File

@ -83,10 +83,7 @@ fn generate_fn_return_type(ty: &Option<ParsedType>) -> proc_macro2::TokenStream
fn generate_return_expression(ty: &Option<ParsedType>) -> proc_macro2::TokenStream {
match ty {
None
| Some(ParsedType::Utf8String)
| Some(ParsedType::ByteVector)
| Some(ParsedType::Record(_)) => quote! {},
None => quote! {},
_ => quote! {
let result =
},