diff --git a/core/storage/sqlite3_ondisk.rs b/core/storage/sqlite3_ondisk.rs index 29ab3d6d3..0d7fbcee9 100644 --- a/core/storage/sqlite3_ondisk.rs +++ b/core/storage/sqlite3_ondisk.rs @@ -1638,7 +1638,6 @@ pub fn build_shared_wal( l.unlock(); } - #[allow(clippy::arc_with_non_send_sync)] let wal_file_shared = Arc::new(RwLock::new(WalFileShared { enabled: AtomicBool::new(true), wal_header: header.clone(), @@ -1964,7 +1963,6 @@ pub fn begin_read_wal_frame_raw( ) -> Result { tracing::trace!("begin_read_wal_frame_raw(offset={})", offset); let buf = Arc::new(buffer_pool.get_wal_frame()); - #[allow(clippy::arc_with_non_send_sync)] let c = Completion::new_read(buf, complete); let c = io.pread(offset, c)?; Ok(c) diff --git a/core/storage/wal.rs b/core/storage/wal.rs index 323f50e29..d21267bbb 100644 --- a/core/storage/wal.rs +++ b/core/storage/wal.rs @@ -553,7 +553,6 @@ impl fmt::Debug for OngoingCheckpoint { } } -#[allow(dead_code)] pub struct WalFile { io: Arc, buffer_pool: Arc, @@ -660,7 +659,6 @@ impl fmt::Debug for WalFile { // TODO(pere): lock only important parts + pin WalFileShared /// WalFileShared is the part of a WAL that will be shared between threads. A wal has information /// that needs to be communicated between threads so this struct does the job. -#[allow(dead_code)] pub struct WalFileShared { pub enabled: AtomicBool, pub wal_header: Arc>,