quicktype
quicktype copied to clipboard
Rust: Too many boxes
The Rust backend generates too many boxes.
It generates things like Box<Option<Box<ChiangMaiGoose>>> where it should only be Option<ChiangMaiGoose.
An Option needn't be boxed. And I don't think that an enum needs to be boxed either. (ChiangMaiGoose is an enum in this case.)