Skip to content

Commit

Permalink
Allow clippy warning for UnsafeCell in Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee committed Sep 25, 2023
1 parent 3a59461 commit 62ecb19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mmap_view_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ impl From<MmapMut> for MmapViewSync {
fn from(mmap: MmapMut) -> MmapViewSync {
let len = mmap.len();
MmapViewSync {
#[allow(clippy::arc_with_non_send_sync)]
inner: Arc::new(UnsafeCell::new(mmap)),
offset: 0,
len,
Expand Down

0 comments on commit 62ecb19

Please sign in to comment.