Closed bunker-inspector closed 4 years ago
Hmm, I had the same issue trying it. I decided either we should derive default on it or that there's no actual point deriving it. I went with changing optional_struct_or_empty_array
to not use default. It doesn't really add anything of value.
Not sure why your codegen has produced differently ordered code
I couldn't tell you. Is the ordering supposed to be guaranteed by something?
A bit, it puts things in a map before writing them out. Maps are normally ordered.
this was fixed with e286109ae5e5687fc51e7f37265afecb279fbd90
Looking for your thoughts on this one since
::optional_struct_or_empty_array
didn't work quite right without coercing the type it generated. It was being output asOptional<BotIcons>
which does not have a default implementation and therefore wouldn't compile.