Fix optional return type

This commit is contained in:
Joel Wachsler 2022-08-05 20:17:26 +00:00
parent 3b5b283019
commit 866d2d9c02

View File

@ -97,6 +97,12 @@ impl types::Type {
},
};
let owned_type = if self.is_optional() {
quote! { std::option::Option<#owned_type> }
} else {
owned_type
};
if self.is_list() {
quote! { std::vec::Vec<#owned_type> }
} else {