From f23a52f4103745cdb60f48856da3d7d9f4761f7b Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Mon, 20 Jan 2025 23:25:14 -0500 Subject: [PATCH] feat(tags): implement `Send` + `Sync` for `TagsConfiguration` This is sound because the pointers point to data owned by the struct itself --- tags/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tags/src/lib.rs b/tags/src/lib.rs index 4c27558f..b139ce00 100644 --- a/tags/src/lib.rs +++ b/tags/src/lib.rs @@ -43,6 +43,9 @@ pub struct TagsConfiguration { pattern_info: Vec, } +unsafe impl Send for TagsConfiguration {} +unsafe impl Sync for TagsConfiguration {} + #[derive(Debug)] pub struct NamedCapture { pub syntax_type_id: u32,