File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ impl Default for IniDefault {
118
118
#[ cfg( windows) ]
119
119
const LINE_ENDING : & ' static str = "\r \n " ;
120
120
#[ cfg( not( windows) ) ]
121
- const LINE_ENDING : & ' static str = "\n " ;
121
+ const LINE_ENDING : & str = "\n " ;
122
122
123
123
impl Ini {
124
124
///Creates a new `Map` of `Map<String, Map<String, Option<String>>>` type for the struct.
@@ -374,10 +374,10 @@ impl Ini {
374
374
// push key/value pairs in outmap to out string.
375
375
fn unparse_key_values ( out : & mut String , outmap : & Map < String , Option < String > > ) {
376
376
for ( key, val) in outmap. iter ( ) {
377
- out. push_str ( & key) ;
377
+ out. push_str ( key) ;
378
378
if let Some ( value) = val {
379
379
out. push ( '=' ) ;
380
- out. push_str ( & value) ;
380
+ out. push_str ( value) ;
381
381
}
382
382
out. push_str ( LINE_ENDING ) ;
383
383
}
You can’t perform that action at this time.
0 commit comments