From 16fa3349271cef6b20f59c4093f58ae0151359d4 Mon Sep 17 00:00:00 2001 From: Scott Cummings Date: Sat, 12 Aug 2023 20:23:20 -0600 Subject: [PATCH] resolve panic if value is empty string --- src/ini.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ini.rs b/src/ini.rs index f6ed72c..02127cc 100755 --- a/src/ini.rs +++ b/src/ini.rs @@ -421,7 +421,7 @@ impl Ini { if multiline { let mut lines = value.lines(); - out.push_str(lines.next().unwrap()); + out.push_str(lines.next().unwrap_or_default()); for line in lines { out.push_str(LINE_ENDING);