From ec9f44727e2d5ed8e735583746006bfa60712212 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Fri, 2 Feb 2024 16:35:58 +0100 Subject: [PATCH] Fix Go tests failing on main (#7285) Follow-up to #7276 in which I broke tests. Release Notes: - N/A --- crates/zed/src/languages/go.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/zed/src/languages/go.rs b/crates/zed/src/languages/go.rs index 12a63c3efee18f784c3c8bdc40713a51547b8952..2fb0d35cf06cc8cf42847a713095ac701c73cbfb 100644 --- a/crates/zed/src/languages/go.rs +++ b/crates/zed/src/languages/go.rs @@ -398,7 +398,6 @@ mod tests { let highlight_type = grammar.highlight_id_for_name("type").unwrap(); let highlight_keyword = grammar.highlight_id_for_name("keyword").unwrap(); let highlight_number = grammar.highlight_id_for_name("number").unwrap(); - let highlight_field = grammar.highlight_id_for_name("property").unwrap(); assert_eq!( language @@ -454,7 +453,7 @@ mod tests { Some(CodeLabel { text: "two.Three a.Bcd".to_string(), filter_range: 0..9, - runs: vec![(4..9, highlight_field), (12..15, highlight_type)], + runs: vec![(12..15, highlight_type)], }) ); }