Implement Send for Parser
This commit is contained in:
parent
0c2e1c189b
commit
572e8c202e
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue