aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/rust-analyzer/src/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs
index 38e3c3324..e35a5e846 100644
--- a/crates/rust-analyzer/src/handlers.rs
+++ b/crates/rust-analyzer/src/handlers.rs
@@ -1283,7 +1283,7 @@ fn should_skip_target(runnable: &Runnable, cargo_spec: Option<&CargoTargetSpec>)
1283 RunnableKind::Bin => { 1283 RunnableKind::Bin => {
1284 // Do not suggest binary run on other target than binary 1284 // Do not suggest binary run on other target than binary
1285 match &cargo_spec { 1285 match &cargo_spec {
1286 Some(spec) => spec.target_kind != TargetKind::Bin, 1286 Some(spec) => !matches!(spec.target_kind, TargetKind::Bin | TargetKind::Example),
1287 None => true, 1287 None => true,
1288 } 1288 }
1289 } 1289 }