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 3a600eb commit 5391827Copy full SHA for 5391827
crates/oxide/src/parser.rs
@@ -352,13 +352,12 @@ impl<'a> Extractor<'a> {
352
let start_brace_index = utility.find(b"[");
353
let end_brace_index = utility.find(b"]");
354
355
- match (start_brace_index, end_brace_index) {
356
- (Some(start_brace_index), Some(end_brace_index)) => {
357
- if start_brace_index < index && end_brace_index > index {
358
- skip_parens_check = true;
359
- }
+ if let (Some(start_brace_index), Some(end_brace_index)) =
+ (start_brace_index, end_brace_index)
+ {
+ if start_brace_index < index && end_brace_index > index {
+ skip_parens_check = true;
360
}
361
- _ => {}
362
363
364
if !skip_parens_check && !utility[index + 1..].starts_with(b"--") {
0 commit comments