From 572e8c202e36c98e875a67f2edadbbad341602cf Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 8 Oct 2018 22:33:11 -0700 Subject: [PATCH] Implement Send for Parser --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 81b4d09a..c547974b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -200,6 +200,8 @@ impl Drop for Parser { } } +unsafe impl Send for Parser {} + impl Tree { pub fn root_node(&self) -> Node { Node::new(unsafe { ffi::ts_tree_root_node(self.0) }).unwrap()