48: Fix optional return type r=jowax a=jowax



Co-authored-by: Joel Wachsler <JoelWachsler@users.noreply.github.com>
This commit is contained in:
bors[bot] 2022-08-05 20:21:58 +00:00 committed by GitHub
commit 89f043cdd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {