From 62ecb19cb32326d2c10b675f21f60d0464299803 Mon Sep 17 00:00:00 2001 From: timvisee Date: Mon, 25 Sep 2023 16:41:12 +0200 Subject: [PATCH] Allow clippy warning for UnsafeCell in Arc --- src/mmap_view_sync.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mmap_view_sync.rs b/src/mmap_view_sync.rs index 60982d9..26cc9a5 100644 --- a/src/mmap_view_sync.rs +++ b/src/mmap_view_sync.rs @@ -147,6 +147,7 @@ impl From 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,