[ty_test] Fix clippy warnings in hover module
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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<AnyNodeRef<'a>> {
|
||||
fn find_covering_node(root: AnyNodeRef<'_>, offset: TextSize) -> Option<AnyNodeRef<'_>> {
|
||||
struct Visitor<'a> {
|
||||
offset: TextSize,
|
||||
minimal_node: Option<AnyNodeRef<'a>>,
|
||||
@@ -77,7 +77,7 @@ fn infer_type_at_position(db: &Db, file: File, offset: TextSize) -> Option<Strin
|
||||
Some(ty.display(db).to_string())
|
||||
}
|
||||
|
||||
/// Generate hover CheckOutputs for all hover assertions in a file.
|
||||
/// Generate hover `CheckOutputs` for all hover assertions in a file.
|
||||
///
|
||||
/// Uses the parsed assertions from the assertion module, which correctly handles
|
||||
/// multiple stacked assertion comments and determines the target line number.
|
||||
|
||||
Reference in New Issue
Block a user