-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ini::iter always return general section even it's empty since 0.19 #119
Comments
Well, yes. It was added from #88 . |
Maybe we can add a |
It also affects, for example, We might add a check in the iterator impl to not yield an empty general group? |
It looks like a good solution that wouldn't break compatibility (maybe). |
I'm not sure if this change is intended or introduced by accident (by #88 I guess).
0.18 and before:
Ini::new().next()
isNone
0.19 and after:
Ini::new().next()
isSome((None, Properties { data: {} }))
(P.S I was iterating all sections from user-generated ini file and prohibited empty section. This change break the logic since now there is always a empty general section.)
The text was updated successfully, but these errors were encountered: