config-rs icon indicating copy to clipboard operation
config-rs copied to clipboard

refactor: `ini` format parser

Open polarathene opened this issue 1 year ago • 0 comments

Intended to be easier to grok and match the same flow as other format parsers.


I worked on this after https://github.com/mehcode/config-rs/pull/469 , but my main gripes were with the sec not being obvious that it was referencing a section, and the repeated inner loop for building property maps.

I added the same enum check with the final Table map wrapped in Value like other parsers, although for this that may be redundant and could be dropped?

Not too fussed if you want to reject this. I originally envisioned it looking nicer than it turned out 😅

polarathene avatar Oct 06 '23 08:10 polarathene