Skip to content

Commit

Permalink
feat(tags): implement Send + Sync for TagsConfiguration
Browse files Browse the repository at this point in the history
This is sound because the pointers point to data owned by the struct
itself
  • Loading branch information
amaanq committed Jan 21, 2025
1 parent 27bc786 commit f23a52f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tags/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f23a52f

Please sign in to comment.