precommit

This commit is contained in:
Douglas Creager 2025-10-09 08:09:50 -04:00
parent 39353da108
commit 1810b7c7a3
3 changed files with 9 additions and 8 deletions

View File

@ -820,10 +820,7 @@ fn definitions_to_navigation_targets<'db>(
}
}
pub fn find_goto_target(
parsed: &ParsedModuleRef,
offset: TextSize,
) -> Option<GotoTarget<'_>> {
pub fn find_goto_target(parsed: &ParsedModuleRef, offset: TextSize) -> Option<GotoTarget<'_>> {
let token = parsed
.tokens()
.at_offset(offset)

View File

@ -1,8 +1,8 @@
# Hover type assertions
This document tests the hover assertion functionality in mdtest. Hover assertions allow testing
the inferred type at a specific position in the code, similar to how a language server's hover
feature works.
This document tests the hover assertion functionality in mdtest. Hover assertions allow testing the
inferred type at a specific position in the code, similar to how a language server's hover feature
works.
## Basic hover assertions

View File

@ -381,7 +381,11 @@ fn run_test(
let assertions = assertion::InlineFileAssertions::from_file(db, test_file.file);
// Generate and add hover outputs
check_outputs.extend(hover::generate_hover_outputs(db, test_file.file, &assertions));
check_outputs.extend(hover::generate_hover_outputs(
db,
test_file.file,
&assertions,
));
let failure = match matcher::match_file(db, test_file.file, &check_outputs) {
Ok(()) => None,