Skip to content

Commit 5391827

Browse files
committed
run cargo clippy
1 parent 3a600eb commit 5391827

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

crates/oxide/src/parser.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,12 @@ impl<'a> Extractor<'a> {
352352
let start_brace_index = utility.find(b"[");
353353
let end_brace_index = utility.find(b"]");
354354

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-
}
355+
if let (Some(start_brace_index), Some(end_brace_index)) =
356+
(start_brace_index, end_brace_index)
357+
{
358+
if start_brace_index < index && end_brace_index > index {
359+
skip_parens_check = true;
360360
}
361-
_ => {}
362361
}
363362

364363
if !skip_parens_check && !utility[index + 1..].starts_with(b"--") {

0 commit comments

Comments
 (0)