Merge pull request #3254 from WillLillis/bug_fix
fix: Add lifetime to matches function
This commit is contained in:
commit
9ae61feac9
1 changed files with 2 additions and 2 deletions
|
|
@ -2336,8 +2336,8 @@ impl QueryCursor {
|
|||
/// Because multiple patterns can match the same set of nodes, one match may contain
|
||||
/// captures that appear *before* some of the captures from a previous match.
|
||||
#[doc(alias = "ts_query_cursor_exec")]
|
||||
pub fn matches<'query, 'tree, T: TextProvider<I>, I: AsRef<[u8]>>(
|
||||
&mut self,
|
||||
pub fn matches<'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