quartiq / miniconf

Rust serialize/deserialize/access reflection for trees (no_std, no alloc)
MIT License
23 stars 2 forks source link

Fix Option depth #169

Closed jordens closed 11 months ago

jordens commented 11 months ago

Option should cover miniconf<0> and not consume a level. It's just not needed.

Derive the correct miniconf level for a struct using the max of the inner levels.

Use that on the iterator type making the depth parameter redundant.

Downside is that structs then have non unity depth parameters. But that doesn't seem too bad. Also requires being explicit about all struct members' depths.

jordens commented 11 months ago

170