mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
Remove target.is_some() to handle it later inside ra::flycheck
This commit is contained in:
parent
4a910095da
commit
61e9c02dd8
1 changed files with 1 additions and 3 deletions
|
@ -379,9 +379,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
|
|||
for (id, package) in workspace_ids.clone() {
|
||||
if id == flycheck.id() {
|
||||
updated = true;
|
||||
match package.filter(|_| {
|
||||
!world.config.flycheck_workspace(source_root_id) || target.is_some()
|
||||
}) {
|
||||
match package.filter(|_| !world.config.flycheck_workspace(source_root_id)) {
|
||||
Some(package) => flycheck
|
||||
.restart_for_package(package, target.clone().map(TupleExt::head)),
|
||||
None => flycheck.restart_workspace(saved_file.clone()),
|
||||
|
|
Loading…
Reference in a new issue