From 5d2a4777dc101d752f9960c92faaf402399107ac Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Fri, 29 Dec 2023 19:47:17 -0800 Subject: [PATCH] Simlify pattern matches --- src/parse/tree_sitter_parser.rs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/parse/tree_sitter_parser.rs b/src/parse/tree_sitter_parser.rs index 1f4a2ebc66..56d9b40c0f 100644 --- a/src/parse/tree_sitter_parser.rs +++ b/src/parse/tree_sitter_parser.rs @@ -1797,24 +1797,11 @@ mod tests { let res = parse(&arena, "", &config, false); match res[0] { - Syntax::List { - info: _, - open_position: _, - open_content: _, - children, - close_position: _, - close_content: _, - num_descendants: _, - } => { + Syntax::List { children, .. } => { // . assert_eq!(children.len(), 3); match children[1] { - Syntax::Atom { - info: _, - position: _, - content: _, - kind: _, - } => { + Syntax::Atom { .. } => { panic!("Style contents is parsed as a single atom"); } _ => {