Skip to content

Commit 61e9c02

Browse files
committed
Remove target.is_some() to handle it later inside ra::flycheck
1 parent 4a91009 commit 61e9c02

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)