File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 4
4
use std:: { fmt, io, process:: Command , time:: Duration } ;
5
5
6
6
use crossbeam_channel:: { select_biased, unbounded, Receiver , Sender } ;
7
- use paths:: { AbsPath , AbsPathBuf , Utf8Path , Utf8PathBuf } ;
7
+ use paths:: { AbsPath , AbsPathBuf , Utf8PathBuf } ;
8
8
use project_model:: { project_json, TargetKind } ;
9
9
use rustc_hash:: FxHashMap ;
10
10
use serde:: Deserialize ;
@@ -618,11 +618,8 @@ impl FlycheckActor {
618
618
}
619
619
620
620
fn cannot_run_workspace ( & self ) -> bool {
621
- self . check_command (
622
- PackageToRestart :: All ,
623
- Some ( AbsPath :: assert ( Utf8Path :: new ( "/tmp/thing.txt" ) ) ) ,
624
- )
625
- . is_none ( )
621
+ let fake_path = self . root . join ( "fake.rs" ) ;
622
+ self . check_command ( PackageToRestart :: All , Some ( & fake_path) ) . is_none ( )
626
623
}
627
624
628
625
/// Construct a `Command` object for checking the user's code. If the user
You can’t perform that action at this time.
0 commit comments