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 @@ pub fn label(&self, target: Option<String>) -> String {
}
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 {