Skip to content

Commit 71a9d92

Browse files
committed
lint: clippy fixes
1 parent 76f7edf commit 71a9d92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ini.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl Default for IniDefault {
118118
#[cfg(windows)]
119119
const LINE_ENDING: &'static str = "\r\n";
120120
#[cfg(not(windows))]
121-
const LINE_ENDING: &'static str = "\n";
121+
const LINE_ENDING: &str = "\n";
122122

123123
impl Ini {
124124
///Creates a new `Map` of `Map<String, Map<String, Option<String>>>` type for the struct.
@@ -374,10 +374,10 @@ impl Ini {
374374
// push key/value pairs in outmap to out string.
375375
fn unparse_key_values(out: &mut String, outmap: &Map<String, Option<String>>) {
376376
for (key, val) in outmap.iter() {
377-
out.push_str(&key);
377+
out.push_str(key);
378378
if let Some(value) = val {
379379
out.push('=');
380-
out.push_str(&value);
380+
out.push_str(value);
381381
}
382382
out.push_str(LINE_ENDING);
383383
}

0 commit comments

Comments
 (0)