Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 097245e

Browse files
author
Hendrik van Antwerpen
committed
Do not panic on out-of-bounds assertion
1 parent 216a4e0 commit 097245e

File tree

1 file changed

+1
-1
lines changed
  • tree-sitter-stack-graphs/src

1 file changed

+1
-1
lines changed

tree-sitter-stack-graphs/src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl Test {
220220
}
221221

222222
for fragment in &mut fragments {
223-
fragment.parse_assertions(|line| line_files[line])?;
223+
fragment.parse_assertions(|line| line_files.get(line).cloned().flatten())?;
224224
}
225225

226226
Ok(Self {

0 commit comments

Comments
 (0)