Skip to content

Commit 86f1556

Browse files
bors[bot]vsrs
andauthored
Merge #5122
5122: Fix "Run | Debug" lens for examples r=matklad a=vsrs Fixes #4974 Co-authored-by: vsrs <[email protected]>
2 parents 4da0a78 + 05e6cbf commit 86f1556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ fn should_skip_target(runnable: &Runnable, cargo_spec: Option<&CargoTargetSpec>)
12831283
RunnableKind::Bin => {
12841284
// Do not suggest binary run on other target than binary
12851285
match &cargo_spec {
1286-
Some(spec) => spec.target_kind != TargetKind::Bin,
1286+
Some(spec) => !matches!(spec.target_kind, TargetKind::Bin | TargetKind::Example),
12871287
None => true,
12881288
}
12891289
}

0 commit comments

Comments
 (0)