Skip to content

Commit 4be95c4

Browse files
committed
fix: update exact and include_ignored flags
1 parent 7492b18 commit 4be95c4

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

crates/rust-analyzer/src/target_spec.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,13 @@ impl CargoTargetSpec {
232232

233233
let exact = match kind {
234234
RunnableKind::Test { test_id } | RunnableKind::Bench { test_id } => match test_id {
235-
TestId::Path(_) => "",
236-
TestId::Name(_) => "--exact",
235+
TestId::Path(_) => "--exact",
236+
TestId::Name(_) => "",
237237
},
238238
_ => "",
239239
};
240240
let include_ignored = match kind {
241-
RunnableKind::Test { test_id } => match test_id {
242-
TestId::Path(_) => "",
243-
TestId::Name(_) => "--include-ignored",
244-
},
241+
RunnableKind::Test { .. } => "--include-ignored",
245242
_ => "",
246243
};
247244

0 commit comments

Comments
 (0)