avl/savefile

Savefile-derive does not support unit structs

avl opened this issue · 2 comments

avl commented

Savefile-derive currently fails if applied to a unit struct.

I.e, the following does not compile:

#[derive(Savefile)]
struct MyUnitStruct;

"Serializing" such a struct is of course super-simple (since it's stateless). So this should be supported. It's just a mistake.

avl commented

This has been fixed on master, will be included in the next release.

avl commented

This support now exists in the latest released version, 0.12.