Closed ScottCUSA closed 1 year ago
I think, out.push_str(lines.next().unwrap());
, could be changed to,out.push_str(lines.next().unwrap_or(""));
, or out.push_str(lines.next().unwrap_or_default());
to resolve this issue.
Good catch, will be fixed in the next release!
configparser can cause a panic on write if multiline is enabled and value is an empty string.
thread 'main' panicked at 'called
Option::unwrap()
on aNone
value', .../.cargo/registry/src/index.crates.io-6f17d22bba15001f/configparser-3.0.2/src/ini.rs:421:51