Skip to content

Commit 7c5bf5e

Browse files
committed
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`
1 parent bc050dd commit 7c5bf5e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ struct InnerStarReference {
2424
header_view: HeaderView,
2525
}
2626

27+
unsafe impl Send for InnerStarReference {}
2728
unsafe impl Sync for InnerStarReference {}
2829

2930
impl Drop for InnerStarReference {

star-sys/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ pub struct StarRef {
66
_unused: [u8; 0],
77
}
88

9-
unsafe impl Send for StarRef {}
10-
119
#[repr(C)]
1210
#[derive(Debug, Copy, Clone)]
1311
pub struct Aligner {

0 commit comments

Comments
 (0)