mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Don't pass any target directory options to custom flycheck
This commit is contained in:
parent
2290cc3cf3
commit
9771e1e18f
2 changed files with 1 additions and 9 deletions
|
@ -58,7 +58,6 @@ pub enum FlycheckConfig {
|
|||
extra_env: FxHashMap<String, String>,
|
||||
invocation_strategy: InvocationStrategy,
|
||||
invocation_location: InvocationLocation,
|
||||
target_dir: Option<PathBuf>,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -355,7 +354,6 @@ impl FlycheckActor {
|
|||
extra_env,
|
||||
invocation_strategy,
|
||||
invocation_location,
|
||||
target_dir,
|
||||
} => {
|
||||
let mut cmd = Command::new(command);
|
||||
cmd.envs(extra_env);
|
||||
|
@ -377,10 +375,6 @@ impl FlycheckActor {
|
|||
}
|
||||
}
|
||||
|
||||
if let Some(target_dir) = target_dir {
|
||||
cmd.arg("--target-dir").arg(target_dir);
|
||||
}
|
||||
|
||||
(cmd, args)
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue