Skip to content

Commit ddce16a

Browse files
committed
drop unused field
1 parent beb81a4 commit ddce16a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

crates/ide/src/annotations.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct Annotation {
2929

3030
#[derive(Debug)]
3131
pub enum AnnotationKind {
32-
Runnable { debug: bool, runnable: Runnable },
32+
Runnable { runnable: Runnable },
3333
HasImpls { position: FilePosition, data: Option<Vec<NavigationTarget>> },
3434
HasReferences { position: FilePosition, data: Option<Vec<FileRange>> },
3535
}
@@ -59,10 +59,7 @@ pub(crate) fn annotations(
5959

6060
let range = runnable.nav.focus_or_full_range();
6161

62-
annotations.push(Annotation {
63-
range,
64-
kind: AnnotationKind::Runnable { debug: false, runnable },
65-
});
62+
annotations.push(Annotation { range, kind: AnnotationKind::Runnable { runnable } });
6663
}
6764
}
6865

crates/rust-analyzer/src/to_proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ pub(crate) fn code_lens(
993993
annotation: Annotation,
994994
) -> Result<()> {
995995
match annotation.kind {
996-
AnnotationKind::Runnable { debug, runnable: run } => {
996+
AnnotationKind::Runnable { runnable: run } => {
997997
let line_index = snap.file_line_index(run.nav.file_id)?;
998998
let annotation_range = range(&line_index, annotation.range);
999999

0 commit comments

Comments
 (0)