Closed initinll closed 1 year ago
Or maybe we could add an empty General Section when parsing from file, which extends this commit:
https://github.com/zonyitoo/rust-ini/commit/1cbfb75b9e2209b9887e90f1d44fae004b3df2b6
Hi @zonyitoo,
Yes, this is already fixed by commit - https://github.com/zonyitoo/rust-ini/commit/1cbfb75b9e2209b9887e90f1d44fae004b3df2b6 , can't reproduce this issue on forked repository.
Closing this issue 👍
Describe the bug
The
Ini
methodgeneral_section
panics when there is no general section in *.ini file.Step to reproduce -
sample.ini
main.rs
output
Possible Fix
The
Ini
methodgeneral_section
should return Option of Properties