@@ -124,7 +124,7 @@ impl IniFileSection {
124124 pub fn write_section < W : std:: fmt:: Write > ( & self , writer : & mut W ) {
125125 writeln ! ( writer, "[{}]" , self . name) . unwrap ( ) ;
126126 for ( key, value) in & self . options {
127- writeln ! ( writer, "{}={}" , key , value ) . unwrap ( ) ;
127+ writeln ! ( writer, "{key }={value}" ) . unwrap ( ) ;
128128 }
129129 writeln ! ( writer) . unwrap ( ) ;
130130 }
@@ -223,7 +223,7 @@ impl IniFile {
223223
224224 pub fn write_ini_file < W : std:: fmt:: Write > ( & self , writer : & mut W ) {
225225 if let Some ( description) = & self . description {
226- writeln ! ( writer, "# {}" , description ) . unwrap ( ) ;
226+ writeln ! ( writer, "# {description}" ) . unwrap ( ) ;
227227 writeln ! ( writer, "\n # -----------------------------------------------------------------------------\n " , ) . unwrap ( ) ;
228228 }
229229 for include in & self . includes {
@@ -239,7 +239,7 @@ impl IniFile {
239239 }
240240 }
241241 for console_cmd in & self . console_cmds {
242- writeln ! ( writer, "ConsoleCmd {}" , console_cmd ) . unwrap ( ) ;
242+ writeln ! ( writer, "ConsoleCmd {console_cmd}" ) . unwrap ( ) ;
243243 }
244244 }
245245}
0 commit comments