summaryrefslogtreecommitdiff
path: root/support/texlab/crates/hover
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-01-28 03:00:53 +0000
committerNorbert Preining <norbert@preining.info>2024-01-28 03:00:53 +0000
commit7084e3008c8fc947579f46c6b8a08dfd180e72ef (patch)
tree9c99041cba4afefac3859d6a2fe4cea289458468 /support/texlab/crates/hover
parentb93d257f657e619e22b8b7a27446118ce041727e (diff)
CTAN sync 202401280300
Diffstat (limited to 'support/texlab/crates/hover')
-rw-r--r--support/texlab/crates/hover/src/lib.rs2
-rw-r--r--support/texlab/crates/hover/src/tests.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/support/texlab/crates/hover/src/lib.rs b/support/texlab/crates/hover/src/lib.rs
index bd16be3282..2d22d50b0b 100644
--- a/support/texlab/crates/hover/src/lib.rs
+++ b/support/texlab/crates/hover/src/lib.rs
@@ -34,7 +34,7 @@ pub enum HoverData<'db> {
StringRef(String),
}
-pub fn find(params: HoverParams) -> Option<Hover> {
+pub fn find<'a>(params: &HoverParams<'a>) -> Option<Hover<'a>> {
citation::find_hover(&params)
.or_else(|| package::find_hover(&params))
.or_else(|| entry_type::find_hover(&params))
diff --git a/support/texlab/crates/hover/src/tests.rs b/support/texlab/crates/hover/src/tests.rs
index bbe33fa2db..e6377bb034 100644
--- a/support/texlab/crates/hover/src/tests.rs
+++ b/support/texlab/crates/hover/src/tests.rs
@@ -6,7 +6,7 @@ fn check(input: &str, expect: Expect) {
let fixture = test_utils::fixture::Fixture::parse(input);
let (feature, offset) = fixture.make_params().unwrap();
let params = HoverParams { feature, offset };
- let data = crate::find(params).map(|hover| {
+ let data = crate::find(&params).map(|hover| {
assert_eq!(fixture.documents[0].ranges[0], hover.range);
hover.data
});