Skip to content

Commit

Permalink
feat: impl Send for InnerStarReference for clippy (#80)
Browse files Browse the repository at this point in the history
Add `impl Send for InnerStarReference` to fix the clippy lint:
Error: error: usage of an `Arc` that is not `Send` and `Sync`
  • Loading branch information
sjackman authored Jul 16, 2024
1 parent bc050dd commit 8678758
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct InnerStarReference {
header_view: HeaderView,
}

unsafe impl Send for InnerStarReference {}
unsafe impl Sync for InnerStarReference {}

impl Drop for InnerStarReference {
Expand Down
2 changes: 0 additions & 2 deletions star-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ pub struct StarRef {
_unused: [u8; 0],
}

unsafe impl Send for StarRef {}

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Aligner {
Expand Down

0 comments on commit 8678758

Please sign in to comment.