From a7078a1561c630c775465e7c9029f1aac2999213 Mon Sep 17 00:00:00 2001 From: WillLillis Date: Wed, 3 Apr 2024 22:06:19 -0400 Subject: [PATCH] fix: Add lifetime to mactches function --- lib/binding_rust/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs index c3ee61ae..420f82e4 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -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: AsRef<[u8]>>( - &mut self, + pub fn matches<'query, 'cursor: 'query, 'tree, T: TextProvider, I: AsRef<[u8]>>( + &'cursor mut self, query: &'query Query, node: Node<'tree>, text_provider: T,