@@ -117,7 +117,7 @@ impl<'a> Processor for ProfileProcessor<'a> {
117
117
fs:: remove_dir_all ( & zsp_dir) ?;
118
118
}
119
119
120
- utils:: fs:: rename ( & tmp_zsp_dir, & zsp_dir) ?;
120
+ utils:: fs:: rename ( tmp_zsp_dir, & zsp_dir) ?;
121
121
122
122
// Rename the data files. There should be exactly three.
123
123
let mut num_files = 0 ;
@@ -305,8 +305,8 @@ impl<'a> Processor for ProfileProcessor<'a> {
305
305
message_type : & ' a str ,
306
306
}
307
307
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 ( )
310
310
{
311
311
let line = line?;
312
312
@@ -327,11 +327,11 @@ impl<'a> Processor for ProfileProcessor<'a> {
327
327
// dir, giving it a new name in the process.
328
328
Profiler :: MonoItems => {
329
329
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" ) ) ;
331
331
let _ = fs:: create_dir_all ( & out_dir) ;
332
332
let result_file = filepath ( & out_dir, "raw" ) ;
333
333
334
- fs:: copy ( & tmp_file, & result_file) ?;
334
+ fs:: copy ( & tmp_file, result_file) ?;
335
335
336
336
let mut by_cgu: HashMap < & str , Vec < ( & str , & str ) > > = HashMap :: new ( ) ;
337
337
let mono_items = std:: fs:: read_to_string ( & tmp_file) ?;
0 commit comments