From 180d9de47275d2fc8dff5ae81f76e8ef7574a224 Mon Sep 17 00:00:00 2001 From: Douglas Creager Date: Wed, 8 Oct 2025 14:48:55 -0400 Subject: [PATCH] [ty_test] Fix clippy warnings in hover module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Elide unnecessary explicit lifetimes in find_covering_node - Add backticks around CheckOutputs in doc comment 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- crates/ty_test/src/hover.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ty_test/src/hover.rs b/crates/ty_test/src/hover.rs index 964e41a24a..c76e3521ab 100644 --- a/crates/ty_test/src/hover.rs +++ b/crates/ty_test/src/hover.rs @@ -26,7 +26,7 @@ pub(crate) struct HoverOutput { } /// Find the AST node with minimal range that fully contains the given offset. -fn find_covering_node<'a>(root: AnyNodeRef<'a>, offset: TextSize) -> Option> { +fn find_covering_node(root: AnyNodeRef<'_>, offset: TextSize) -> Option> { struct Visitor<'a> { offset: TextSize, minimal_node: Option>, @@ -77,7 +77,7 @@ fn infer_type_at_position(db: &Db, file: File, offset: TextSize) -> Option