mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
simplify
This commit is contained in:
parent
96d85a9efb
commit
beb81a40eb
2 changed files with 7 additions and 11 deletions
|
@ -74,16 +74,6 @@ impl Runnable {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn can_debug(&self) -> bool {
|
||||
match self.kind {
|
||||
RunnableKind::DocTest { .. } => false,
|
||||
RunnableKind::TestMod { .. }
|
||||
| RunnableKind::Test { .. }
|
||||
| RunnableKind::Bench { .. }
|
||||
| RunnableKind::Bin => true,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn title(&self) -> String {
|
||||
let mut s = String::from("▶\u{fe0e} Run ");
|
||||
if self.use_name_in_title {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue