diff options
author | vsrs <[email protected]> | 2020-06-29 12:05:52 +0100 |
---|---|---|
committer | vsrs <[email protected]> | 2020-06-29 12:05:52 +0100 |
commit | 05e6cbf31028b58a71ace5f09f09a19631844b9f (patch) | |
tree | dcf2b0c33fb574313f7f1e840816ca95671b4c9e | |
parent | ca31b1d63ae91a69f1ce9c0b075403834ba19f38 (diff) |
Fix "Run | Debug" lens for examples
-rw-r--r-- | crates/rust-analyzer/src/handlers.rs | 2 |
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 | } |