Unnamed repository; edit this file 'description' to name the repository.
fix: update exact and include_ignored flags
| -rw-r--r-- | crates/rust-analyzer/src/target_spec.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crates/rust-analyzer/src/target_spec.rs b/crates/rust-analyzer/src/target_spec.rs index beb523e6bd..01196b80cd 100644 --- a/crates/rust-analyzer/src/target_spec.rs +++ b/crates/rust-analyzer/src/target_spec.rs @@ -232,16 +232,13 @@ impl CargoTargetSpec { let exact = match kind { RunnableKind::Test { test_id } | RunnableKind::Bench { test_id } => match test_id { - TestId::Path(_) => "", - TestId::Name(_) => "--exact", + TestId::Path(_) => "--exact", + TestId::Name(_) => "", }, _ => "", }; let include_ignored = match kind { - RunnableKind::Test { test_id } => match test_id { - TestId::Path(_) => "", - TestId::Name(_) => "--include-ignored", - }, + RunnableKind::Test { .. } => "--include-ignored", _ => "", }; |