Skip to content

Commit 926566c

Browse files
committed
fix: Rename 'a to 'tree
1 parent 13271bc commit 926566c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bindings/rust/parser.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ pub struct MarkdownParser {
2121
/// This exposes the same methods as [`TreeCursor`], but abstracts away the
2222
/// double block / inline structure of [`MarkdownTree`].
2323
#[derive(Clone)]
24-
pub struct MarkdownCursor<'a> {
25-
markdown_tree: &'a MarkdownTree,
26-
block_cursor: TreeCursor<'a>,
27-
inline_cursor: Option<TreeCursor<'a>>,
24+
pub struct MarkdownCursor<'tree> {
25+
markdown_tree: &'tree MarkdownTree,
26+
block_cursor: TreeCursor<'tree>,
27+
inline_cursor: Option<TreeCursor<'tree>>,
2828
}
2929

30-
impl<'a> MarkdownCursor<'a> {
30+
impl<'tree> MarkdownCursor<'tree> {
3131
/// Get the cursor's current [`Node`].
3232
#[doc(alias = "ts_tree_cursor_current_node")]
3333
#[must_use]
34-
pub fn node(&self) -> Node<'a> {
34+
pub fn node(&self) -> Node<'tree> {
3535
match &self.inline_cursor {
3636
Some(cursor) => cursor.node(),
3737
None => self.block_cursor.node(),

0 commit comments

Comments
 (0)