From 0f533b909d7df710f3d0ca3d8ed8a4137633da0f Mon Sep 17 00:00:00 2001 From: Andrew Hlynskyi Date: Sat, 22 Jul 2023 17:38:42 +0300 Subject: [PATCH] chore: group Sync, Send impls by type --- lib/binding_rust/lib.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs index b80e2661..efac4f1a 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -2642,12 +2642,16 @@ impl error::Error for LanguageError {} impl error::Error for QueryError {} unsafe impl Send for Language {} -unsafe impl Send for Parser {} -unsafe impl Send for Query {} -unsafe impl Send for QueryCursor {} -unsafe impl Send for Tree {} unsafe impl Sync for Language {} + +unsafe impl Send for Parser {} unsafe impl Sync for Parser {} + +unsafe impl Send for Query {} unsafe impl Sync for Query {} + +unsafe impl Send for QueryCursor {} unsafe impl Sync for QueryCursor {} + +unsafe impl Send for Tree {} unsafe impl Sync for Tree {}