Fix "Run | Debug" lens for examples

This commit is contained in:
vsrs 2020-06-29 14:05:52 +03:00
parent ca31b1d63a
commit 05e6cbf310

View file

@ -1283,7 +1283,7 @@ fn should_skip_target(runnable: &Runnable, cargo_spec: Option<&CargoTargetSpec>)
RunnableKind::Bin => {
// Do not suggest binary run on other target than binary
match &cargo_spec {
Some(spec) => spec.target_kind != TargetKind::Bin,
Some(spec) => !matches!(spec.target_kind, TargetKind::Bin | TargetKind::Example),
None => true,
}
}