Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/annotations.rs')
-rw-r--r--crates/ide/src/annotations.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/crates/ide/src/annotations.rs b/crates/ide/src/annotations.rs
index a0add4741f..e47891bbdf 100644
--- a/crates/ide/src/annotations.rs
+++ b/crates/ide/src/annotations.rs
@@ -173,14 +173,7 @@ pub(crate) fn annotations(
annotations
.into_iter()
.sorted_by_key(|a| {
- (
- a.range.start(),
- a.range.end(),
- match &a.kind {
- AnnotationKind::Runnable(runnable) => Some(runnable.nav.name.clone()),
- _ => None,
- },
- )
+ (a.range.start(), a.range.end(), matches!(a.kind, AnnotationKind::Runnable(..)))
})
.collect()
}