From c44f9dfb177a19708e03c681ce53e8fdc78438ce Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Mon, 25 Aug 2025 11:02:23 -0400 Subject: [PATCH] Remove redundant tag type check Co-authored-by: David Kleingeld --- crates/editor/src/hover_links.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/editor/src/hover_links.rs b/crates/editor/src/hover_links.rs index eeca369f0a..0cc13db13f 100644 --- a/crates/editor/src/hover_links.rs +++ b/crates/editor/src/hover_links.rs @@ -332,11 +332,7 @@ pub fn update_inlay_link_and_hover_points( { let inlay_hint_cache = editor.inlay_hint_cache(); let excerpt_id = hovered_hint.position.excerpt_id; - - // Extract the hint ID from the inlay - if let InlayId::Hint(_hint_id) = hovered_hint.id - && let Some(cached_hint) = inlay_hint_cache.hint_by_id(excerpt_id, hovered_hint.id) - { + if let Some(cached_hint) = inlay_hint_cache.hint_by_id(excerpt_id, hovered_hint.id) { // Check if we should process this hint for hover let should_process_hint = match cached_hint.resolve_state { ResolveState::CanResolve(_, _) => {