Skip to content

Commit dd48d20

Browse files
Fix warning about hiding a lifetime that's elided elsewhere being confusing (#896)
1 parent f55065c commit dd48d20

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crates/ark/src/lsp/help.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl RHtmlHelp {
129129
}
130130

131131
#[allow(unused)]
132-
pub fn section(&self, name: &str) -> Option<Vec<ElementRef>> {
132+
pub fn section(&self, name: &str) -> Option<Vec<ElementRef<'_>>> {
133133
// find all h3 headers in the document
134134
let selector = Selector::parse("h3").unwrap();
135135
let mut headers = self.html.select(&selector);

crates/ark/src/lsp/help_topic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub(crate) fn help_topic(
6464
Ok(Some(response))
6565
}
6666

67-
fn locate_help_node(tree: &Tree, point: Point) -> Option<Node> {
67+
fn locate_help_node(tree: &Tree, point: Point) -> Option<Node<'_>> {
6868
let root = tree.root_node();
6969

7070
let Some(mut node) = root.find_closest_node_to_point(point) else {

crates/ark/src/lsp/main_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ pub(crate) fn publish_diagnostics(uri: Url, diagnostics: Vec<Diagnostic>, versio
665665
}
666666

667667
impl KernelNotification {
668-
pub(crate) fn trace(&self) -> TraceKernelNotification {
668+
pub(crate) fn trace(&self) -> TraceKernelNotification<'_> {
669669
TraceKernelNotification { inner: self }
670670
}
671671
}

0 commit comments

Comments
 (0)