We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76f7edf commit 71a9d92Copy full SHA for 71a9d92
src/ini.rs
@@ -118,7 +118,7 @@ impl Default for IniDefault {
118
#[cfg(windows)]
119
const LINE_ENDING: &'static str = "\r\n";
120
#[cfg(not(windows))]
121
-const LINE_ENDING: &'static str = "\n";
+const LINE_ENDING: &str = "\n";
122
123
impl Ini {
124
///Creates a new `Map` of `Map<String, Map<String, Option<String>>>` type for the struct.
@@ -374,10 +374,10 @@ impl Ini {
374
// push key/value pairs in outmap to out string.
375
fn unparse_key_values(out: &mut String, outmap: &Map<String, Option<String>>) {
376
for (key, val) in outmap.iter() {
377
- out.push_str(&key);
+ out.push_str(key);
378
if let Some(value) = val {
379
out.push('=');
380
- out.push_str(&value);
+ out.push_str(value);
381
}
382
out.push_str(LINE_ENDING);
383
0 commit comments