fix: tie the lifetime of the cursor to the query in QueryCursor::captures()
This commit is contained in:
parent
4d8b031bcc
commit
cbcb51b857
1 changed files with 2 additions and 2 deletions
|
|
@ -2359,8 +2359,8 @@ impl QueryCursor {
|
|||
/// This is useful if you don't care about which pattern matched, and just want a single,
|
||||
/// ordered sequence of captures.
|
||||
#[doc(alias = "ts_query_cursor_exec")]
|
||||
pub fn captures<'query, 'tree, T: TextProvider<I>, I: AsRef<[u8]>>(
|
||||
&mut self,
|
||||
pub fn captures<'query, 'cursor: 'query, 'tree, T: TextProvider<I>, I: AsRef<[u8]>>(
|
||||
&'cursor mut self,
|
||||
query: &'query Query,
|
||||
node: Node<'tree>,
|
||||
text_provider: T,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue