mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
simplify
This commit is contained in:
parent
96d85a9efb
commit
beb81a40eb
2 changed files with 7 additions and 11 deletions
|
@ -998,7 +998,13 @@ pub(crate) fn code_lens(
|
|||
let annotation_range = range(&line_index, annotation.range);
|
||||
|
||||
let title = run.title();
|
||||
let can_debug = run.can_debug();
|
||||
let can_debug = match run.kind {
|
||||
ide::RunnableKind::DocTest { .. } => false,
|
||||
ide::RunnableKind::TestMod { .. }
|
||||
| ide::RunnableKind::Test { .. }
|
||||
| ide::RunnableKind::Bench { .. }
|
||||
| ide::RunnableKind::Bin => true,
|
||||
};
|
||||
let r = runnable(snap, run)?;
|
||||
|
||||
let lens_config = snap.config.lens();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue