File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/rust-analyzer/src/cli Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ impl flags::AnalysisStats {
369
369
370
370
let parse = sema. parse ( file_id) ;
371
371
let file_txt = db. file_text ( file_id) ;
372
- let path = vfs. file_path ( file_id) . as_path ( ) . unwrap ( ) . to_owned ( ) ;
372
+ let path = vfs. file_path ( file_id) . as_path ( ) . unwrap ( ) ;
373
373
374
374
for node in parse. syntax ( ) . descendants ( ) {
375
375
let expr = match syntax:: ast:: Expr :: cast ( node. clone ( ) ) {
@@ -444,7 +444,7 @@ impl flags::AnalysisStats {
444
444
edit. apply ( & mut txt) ;
445
445
446
446
if self . validate_term_search {
447
- std:: fs:: write ( & path, txt) . unwrap ( ) ;
447
+ std:: fs:: write ( path, txt) . unwrap ( ) ;
448
448
449
449
let res = ws. run_build_scripts ( & cargo_config, & |_| ( ) ) . unwrap ( ) ;
450
450
if let Some ( err) = res. error ( ) {
@@ -493,7 +493,7 @@ impl flags::AnalysisStats {
493
493
}
494
494
// Revert file back to original state
495
495
if self . validate_term_search {
496
- std:: fs:: write ( & path, file_txt. to_string ( ) ) . unwrap ( ) ;
496
+ std:: fs:: write ( path, file_txt. to_string ( ) ) . unwrap ( ) ;
497
497
}
498
498
499
499
bar. inc ( 1 ) ;
You can’t perform that action at this time.
0 commit comments