mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
feat(tags): implement Send + Sync for TagsConfiguration
This is sound because the pointers point to data owned by the struct itself
This commit is contained in:
parent
27bc78698d
commit
f23a52f410
|
|
@ -43,6 +43,9 @@ pub struct TagsConfiguration {
|
|||
pattern_info: Vec<PatternInfo>,
|
||||
}
|
||||
|
||||
unsafe impl Send for TagsConfiguration {}
|
||||
unsafe impl Sync for TagsConfiguration {}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct NamedCapture {
|
||||
pub syntax_type_id: u32,
|
||||
|
|
|
|||
Loading…
Reference in a new issue