Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/test-utils/src/lib.rs')
-rw-r--r--crates/test-utils/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/test-utils/src/lib.rs b/crates/test-utils/src/lib.rs
index 62867fd5b5..4eab7f4b18 100644
--- a/crates/test-utils/src/lib.rs
+++ b/crates/test-utils/src/lib.rs
@@ -260,7 +260,7 @@ pub fn extract_annotations(text: &str) -> Vec<(TextRange, String)> {
let &(_, idx) = prev_line_annotations
.iter()
.find(|&&(off, _idx)| off == offset)
- .unwrap();
+ .expect("annotation continuation not found");
res[idx].1.push('\n');
res[idx].1.push_str(&content);
res[idx].1.push('\n');