Loosen unnecessary lifetime restriction in rust QueryCursor APIs

This commit is contained in:
Max Brunsfeld 2019-09-26 15:58:41 -07:00
parent f490befcde
commit a45dc67390

View file

@ -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,