From 7c5bf5ec496f9edf760b62536ecee1e1c817ecb5 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Mon, 15 Jul 2024 12:46:48 -0700 Subject: [PATCH] feat: impl Send for InnerStarReference for clippy `impl Send for InnerStarReference` to fix the clippy lint: Error: error: usage of an `Arc` that is not `Send` and `Sync` --- src/lib.rs | 1 + star-sys/src/lib.rs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fc4dd1d..7847716 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,6 +24,7 @@ struct InnerStarReference { header_view: HeaderView, } +unsafe impl Send for InnerStarReference {} unsafe impl Sync for InnerStarReference {} impl Drop for InnerStarReference { diff --git a/star-sys/src/lib.rs b/star-sys/src/lib.rs index 2e2d2e5..1b7ba06 100644 --- a/star-sys/src/lib.rs +++ b/star-sys/src/lib.rs @@ -6,8 +6,6 @@ pub struct StarRef { _unused: [u8; 0], } -unsafe impl Send for StarRef {} - #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct Aligner {