From a45dc67390f948897bc1745a5801fda4b8702c67 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 26 Sep 2019 15:58:41 -0700 Subject: [PATCH] Loosen unnecessary lifetime restriction in rust QueryCursor APIs --- 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 87771759..1ecde648 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -1270,7 +1270,7 @@ impl QueryCursor { } pub fn matches<'a>( - &'a mut self, + &mut self, query: &'a Query, node: Node<'a>, mut text_callback: impl FnMut(Node<'a>) -> &[u8] + 'a, @@ -1293,7 +1293,7 @@ impl QueryCursor { } pub fn captures<'a, T: AsRef<[u8]>>( - &'a mut self, + &mut self, query: &'a Query, node: Node<'a>, text_callback: impl FnMut(Node<'a>) -> T + 'a,