File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ( ) ,
You can’t perform that action at this time.
0 commit comments