diff --git a/crates/ty_ide/src/goto.rs b/crates/ty_ide/src/goto.rs index 1d72d48155..dd7fb89bdc 100644 --- a/crates/ty_ide/src/goto.rs +++ b/crates/ty_ide/src/goto.rs @@ -820,10 +820,7 @@ fn definitions_to_navigation_targets<'db>( } } -pub fn find_goto_target( - parsed: &ParsedModuleRef, - offset: TextSize, -) -> Option> { +pub fn find_goto_target(parsed: &ParsedModuleRef, offset: TextSize) -> Option> { let token = parsed .tokens() .at_offset(offset) diff --git a/crates/ty_python_semantic/resources/mdtest/hover.md b/crates/ty_python_semantic/resources/mdtest/hover.md index acf13ca4d9..f9ab8756ca 100644 --- a/crates/ty_python_semantic/resources/mdtest/hover.md +++ b/crates/ty_python_semantic/resources/mdtest/hover.md @@ -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 diff --git a/crates/ty_test/src/lib.rs b/crates/ty_test/src/lib.rs index 1d175298cb..c77897a03e 100644 --- a/crates/ty_test/src/lib.rs +++ b/crates/ty_test/src/lib.rs @@ -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,