From 96d85a9efb2c58d127961fb59b3a69747833803d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 11 Jul 2021 13:44:28 +0300 Subject: [PATCH] be explicit about what we *can't* debug --- crates/ide/src/runnables.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index b748d84ecc..22e0a2afd6 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs @@ -75,13 +75,13 @@ impl Runnable { } pub fn can_debug(&self) -> bool { - matches!( - &self.kind, + match self.kind { + RunnableKind::DocTest { .. } => false, RunnableKind::TestMod { .. } - | RunnableKind::Test { .. } - | RunnableKind::Bench { .. } - | RunnableKind::Bin - ) + | RunnableKind::Test { .. } + | RunnableKind::Bench { .. } + | RunnableKind::Bin => true, + } } pub fn title(&self) -> String {