quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

Rust: Too many boxes

Open waywardmonkeys opened this issue 6 years ago • 1 comments

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.)

waywardmonkeys avatar Nov 10 '18 02:11 waywardmonkeys