Skip to content

Commit 314187d

Browse files
matkladbjorn3
andauthored
Update crates/expect/src/lib.rs
Co-authored-by: bjorn3 <[email protected]>
1 parent f99f50e commit 314187d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/expect/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl Expect {
7878
line_start += line.len();
7979
}
8080
let (literal_start, line_indent) = target_line.unwrap();
81-
let literal_length = file[literal_start..].find("]]").unwrap();
81+
let literal_length = file[literal_start..].find("]]").expect("Couldn't find matching `]]` for `expect![[`.");
8282
let literal_range = literal_start..literal_start + literal_length;
8383
Location { line_indent, literal_range }
8484
}

0 commit comments

Comments
 (0)