From 1fbe929ad911514af31db749cbbd55e181a8ce27 Mon Sep 17 00:00:00 2001 From: Andrew Hlynskyi Date: Sat, 22 Jul 2023 17:39:17 +0300 Subject: [PATCH] feat: define Sync, Send for Node and TreeCursor types --- lib/binding_rust/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs index efac4f1a..8e6b091a 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -2644,6 +2644,9 @@ impl error::Error for QueryError {} unsafe impl Send for Language {} unsafe impl Sync for Language {} +unsafe impl Send for Node<'_> {} +unsafe impl Sync for Node<'_> {} + unsafe impl Send for Parser {} unsafe impl Sync for Parser {} @@ -2655,3 +2658,6 @@ unsafe impl Sync for QueryCursor {} unsafe impl Send for Tree {} unsafe impl Sync for Tree {} + +unsafe impl Send for TreeCursor<'_> {} +unsafe impl Sync for TreeCursor<'_> {}