We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99f50e commit 314187dCopy full SHA for 314187d
crates/expect/src/lib.rs
@@ -78,7 +78,7 @@ impl Expect {
78
line_start += line.len();
79
}
80
let (literal_start, line_indent) = target_line.unwrap();
81
- let literal_length = file[literal_start..].find("]]").unwrap();
+ let literal_length = file[literal_start..].find("]]").expect("Couldn't find matching `]]` for `expect![[`.");
82
let literal_range = literal_start..literal_start + literal_length;
83
Location { line_indent, literal_range }
84
0 commit comments