Merge #48
48: Fix optional return type r=jowax a=jowax Co-authored-by: Joel Wachsler <JoelWachsler@users.noreply.github.com>
This commit is contained in:
commit
89f043cdd3
|
@ -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() {
|
if self.is_list() {
|
||||||
quote! { std::vec::Vec<#owned_type> }
|
quote! { std::vec::Vec<#owned_type> }
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user