Skip to content

Commit

Permalink
Silence a clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Feb 8, 2024
1 parent 4146067 commit cd65d48
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/parse/tree_sitter_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1837,15 +1837,10 @@ mod tests {
Syntax::List { children, .. } => {
// <style>, content, </style>.
assert_eq!(children.len(), 3);
match children[1] {
Syntax::Atom { .. } => {
panic!("Style contents is parsed as a single atom");
}
_ => {
// A list is what we want; it shows that the CSS was parsed
// into multiple tokens, so we do not check it further.
}
}

// A list is what we want; it shows that the CSS was parsed
// into multiple tokens, so we do not check it further.
assert!(matches!(children[1], Syntax::List { .. }));
}
_ => {
panic!("Top level isn't a list");
Expand Down

0 comments on commit cd65d48

Please sign in to comment.