-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't panic (on general_section for empty ini)
When creating a new ini or loading it from an input which contains no actual entries but empty lines for the general section, calling general_section and general_section_mut panics. This is not documented nor do I expect this behavior: Isn't an empty file equivalent to an empty general section? And from this perspective, calls to general_section or general_section_mut should not panic.
- Loading branch information
Showing
1 changed file
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters