Skip to content

Commit a047750

Browse files
committed
simplify
1 parent ddce16a commit a047750

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/ide/src/annotations.rs

Lines changed: 2 additions & 2 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 { runnable: Runnable },
32+
Runnable(Runnable),
3333
HasImpls { position: FilePosition, data: Option<Vec<NavigationTarget>> },
3434
HasReferences { position: FilePosition, data: Option<Vec<FileRange>> },
3535
}
@@ -59,7 +59,7 @@ pub(crate) fn annotations(
5959

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

62-
annotations.push(Annotation { range, kind: AnnotationKind::Runnable { runnable } });
62+
annotations.push(Annotation { range, kind: AnnotationKind::Runnable(runnable) });
6363
}
6464
}
6565

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 { runnable: run } => {
996+
AnnotationKind::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)