@@ -117,7 +117,7 @@ impl<'a> Processor for ProfileProcessor<'a> {
117117 fs:: remove_dir_all ( & zsp_dir) ?;
118118 }
119119
120- utils:: fs:: rename ( & tmp_zsp_dir, & zsp_dir) ?;
120+ utils:: fs:: rename ( tmp_zsp_dir, & zsp_dir) ?;
121121
122122 // Rename the data files. There should be exactly three.
123123 let mut num_files = 0 ;
@@ -305,8 +305,8 @@ impl<'a> Processor for ProfileProcessor<'a> {
305305 message_type : & ' a str ,
306306 }
307307
308- let mut final_file = io:: BufWriter :: new ( std:: fs:: File :: create ( & eprintln_file) ?) ;
309- for line in io:: BufReader :: new ( std:: fs:: File :: open ( & tmp_eprintln_file) ?) . lines ( )
308+ let mut final_file = io:: BufWriter :: new ( std:: fs:: File :: create ( eprintln_file) ?) ;
309+ for line in io:: BufReader :: new ( std:: fs:: File :: open ( tmp_eprintln_file) ?) . lines ( )
310310 {
311311 let line = line?;
312312
@@ -327,11 +327,11 @@ impl<'a> Processor for ProfileProcessor<'a> {
327327 // dir, giving it a new name in the process.
328328 Profiler :: MonoItems => {
329329 let tmp_file = filepath ( data. cwd , "mono-items" ) ;
330- let out_dir = self . output_dir . join ( & out_file ( "mono-items" ) ) ;
330+ let out_dir = self . output_dir . join ( out_file ( "mono-items" ) ) ;
331331 let _ = fs:: create_dir_all ( & out_dir) ;
332332 let result_file = filepath ( & out_dir, "raw" ) ;
333333
334- fs:: copy ( & tmp_file, & result_file) ?;
334+ fs:: copy ( & tmp_file, result_file) ?;
335335
336336 let mut by_cgu: HashMap < & str , Vec < ( & str , & str ) > > = HashMap :: new ( ) ;
337337 let mono_items = std:: fs:: read_to_string ( & tmp_file) ?;
0 commit comments