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