be explicit about what we *can't* debug

This commit is contained in:
Aleksey Kladov 2021-07-11 13:44:28 +03:00
parent fa6f78c95b
commit 96d85a9efb

View file

@ -75,13 +75,13 @@ impl Runnable {
} }
pub fn can_debug(&self) -> bool { pub fn can_debug(&self) -> bool {
matches!( match self.kind {
&self.kind, RunnableKind::DocTest { .. } => false,
RunnableKind::TestMod { .. } RunnableKind::TestMod { .. }
| RunnableKind::Test { .. } | RunnableKind::Test { .. }
| RunnableKind::Bench { .. } | RunnableKind::Bench { .. }
| RunnableKind::Bin | RunnableKind::Bin => true,
) }
} }
pub fn title(&self) -> String { pub fn title(&self) -> String {