File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use cargo_metadata::PackageId;
1212use crossbeam_channel:: { Receiver , Sender , select_biased, unbounded} ;
1313use ide_db:: FxHashSet ;
1414use itertools:: Itertools ;
15- use paths:: { AbsPath , AbsPathBuf , Utf8PathBuf } ;
15+ use paths:: { AbsPath , AbsPathBuf , Utf8Path , Utf8PathBuf } ;
1616use rustc_hash:: FxHashMap ;
1717use serde:: Deserialize as _;
1818use serde_derive:: Deserialize ;
@@ -432,8 +432,10 @@ impl FlycheckActor {
432432 options
433433 . target_dir
434434 . as_deref ( )
435- . unwrap_or ( "target" . as_ref ( ) )
436- . join ( format ! ( "rust-analyzer/flycheck{}" , self . id) ) ,
435+ . unwrap_or (
436+ Utf8Path :: new ( "target" ) . join ( "rust-analyzer" ) . as_path ( ) ,
437+ )
438+ . join ( format ! ( "flycheck{}" , self . id) ) ,
437439 ) ,
438440 _ => None ,
439441 } ,
You can’t perform that action at this time.
0 commit comments