Fix optional return type
This commit is contained in:
parent
3b5b283019
commit
866d2d9c02
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user