Silence a clippy warning

pull/640/head
Wilfred Hughes 2024-02-08 08:40:47 +07:00
parent 4146067be1
commit cd65d48619
1 changed files with 4 additions and 9 deletions

@ -1837,15 +1837,10 @@ mod tests {
Syntax::List { children, .. } => { Syntax::List { children, .. } => {
// <style>, content, </style>. // <style>, content, </style>.
assert_eq!(children.len(), 3); assert_eq!(children.len(), 3);
match children[1] {
Syntax::Atom { .. } => { // A list is what we want; it shows that the CSS was parsed
panic!("Style contents is parsed as a single atom"); // into multiple tokens, so we do not check it further.
} assert!(matches!(children[1], Syntax::List { .. }));
_ => {
// A list is what we want; it shows that the CSS was parsed
// into multiple tokens, so we do not check it further.
}
}
} }
_ => { _ => {
panic!("Top level isn't a list"); panic!("Top level isn't a list");