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 3594fdd commit 3e499f0Copy full SHA for 3e499f0
src/lib.rs
@@ -359,7 +359,7 @@ fn locate_end(arg_start_to_eof: &str) -> Option<usize> {
359
// expect![[]]
360
'[' => {
361
let str_start_to_eof = arg_start_to_eof[1..].trim_start();
362
- let str_len = find_str_lit_len(str_start_to_eof)?;
+ let str_len = find_str_lit_len(str_start_to_eof).unwrap_or(0);
363
let str_end_to_eof = &str_start_to_eof[str_len..];
364
let closing_brace_offset = str_end_to_eof.find(']')?;
365
Some((arg_start_to_eof.len() - str_end_to_eof.len()) + closing_brace_offset + 1)
0 commit comments