drop unused field

This commit is contained in:
Aleksey Kladov 2021-07-11 13:48:26 +03:00
parent beb81a40eb
commit ddce16a126
2 changed files with 3 additions and 6 deletions

View file

@ -29,7 +29,7 @@ pub struct Annotation {
#[derive(Debug)]
pub enum AnnotationKind {
Runnable { debug: bool, runnable: Runnable },
Runnable { runnable: Runnable },
HasImpls { position: FilePosition, data: Option<Vec<NavigationTarget>> },
HasReferences { position: FilePosition, data: Option<Vec<FileRange>> },
}
@ -59,10 +59,7 @@ pub(crate) fn annotations(
let range = runnable.nav.focus_or_full_range();
annotations.push(Annotation {
range,
kind: AnnotationKind::Runnable { debug: false, runnable },
});
annotations.push(Annotation { range, kind: AnnotationKind::Runnable { runnable } });
}
}

View file

@ -993,7 +993,7 @@ pub(crate) fn code_lens(
annotation: Annotation,
) -> Result<()> {
match annotation.kind {
AnnotationKind::Runnable { debug, runnable: run } => {
AnnotationKind::Runnable { runnable: run } => {
let line_index = snap.file_line_index(run.nav.file_id)?;
let annotation_range = range(&line_index, annotation.range);