Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c33c951

Browse files
committed
Remove target.is_some() to handle it later inside ra::flycheck
1 parent 4866fb4 commit c33c951

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/handlers/notification.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
379379
for (id, package) in workspace_ids.clone() {
380380
if id == flycheck.id() {
381381
updated = true;
382-
match package.filter(|_| {
383-
!world.config.flycheck_workspace(source_root_id) || target.is_some()
384-
}) {
382+
match package.filter(|_| !world.config.flycheck_workspace(source_root_id)) {
385383
Some(package) => flycheck
386384
.restart_for_package(package, target.clone().map(TupleExt::head)),
387385
None => flycheck.restart_workspace(saved_file.clone()),

0 commit comments

Comments
 (0)