@@ -142,7 +142,7 @@ pub(super) fn edit_files(
142142 let data = file. new_data . expect ( "filled in above" ) ;
143143 if data == file. old_data {
144144 // File unchanged. No need to write it again.
145- user_info ! ( "{} unchanged" , file. path. display( ) ) ;
145+ user_info ! ( "{path } unchanged" , path = file. path. display( ) ) ;
146146 continue ;
147147 }
148148
@@ -181,8 +181,9 @@ impl Drop for TempDirDropGuard {
181181 fn drop ( & mut self ) {
182182 if let Err ( e) = std:: fs:: remove_dir_all ( & self . 0 ) {
183183 user_error ! (
184- "failed to remove temporary directory {}: {e}" ,
185- self . 0 . display( ) ,
184+ "failed to remove temporary directory {path}: {error}" ,
185+ path = self . 0 . display( ) ,
186+ error = e
186187 ) ;
187188 } ;
188189 }
@@ -192,7 +193,7 @@ fn handle_child(editor: &Path, file: Vec<ChildFileInfo<'_>>) -> ! {
192193 match handle_child_inner ( editor, file) {
193194 Ok ( ( ) ) => process:: exit ( 0 ) ,
194195 Err ( err) => {
195- user_error ! ( "{err}" ) ;
196+ user_error ! ( "{error}" , error = err ) ;
196197 process:: exit ( 1 ) ;
197198 }
198199 }
@@ -308,7 +309,7 @@ fn handle_child_inner(editor: &Path, mut files: Vec<ChildFileInfo<'_>>) -> Resul
308309 ) {
309310 Ok ( b'y' ) => { }
310311 _ => {
311- user_info ! ( "not overwriting {}" , file. path. display( ) ) ;
312+ user_info ! ( "not overwriting {path }" , path = file. path. display( ) ) ;
312313
313314 // Parent ignores write when new data matches old data
314315 write_stream ( & mut file. new_data_tx , & file. old_data )
0 commit comments