Implement Send for Parser

This commit is contained in:
Max Brunsfeld 2018-10-08 22:33:11 -07:00
parent 0c2e1c189b
commit 572e8c202e

View file

@ -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()