diff --git a/crates/ide/src/annotations.rs b/crates/ide/src/annotations.rs index ef3aab5b652..27a335f04e1 100644 --- a/crates/ide/src/annotations.rs +++ b/crates/ide/src/annotations.rs @@ -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> }, HasReferences { position: FilePosition, data: Option> }, } @@ -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 } }); } } diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 94ba4fbaeaf..d7b278f011c 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -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);