From 20bdbd5ca5b5f599e773c40ca350969a3dbc6f86 Mon Sep 17 00:00:00 2001 From: Iaroslav Zeigerman Date: Thu, 17 Jul 2025 19:41:58 +0200 Subject: [PATCH] address suggestions --- core/storage/sqlite3_ondisk.rs | 2 +- core/vdbe/sorter.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/storage/sqlite3_ondisk.rs b/core/storage/sqlite3_ondisk.rs index 36d5efb18..c1001cf54 100644 --- a/core/storage/sqlite3_ondisk.rs +++ b/core/storage/sqlite3_ondisk.rs @@ -1076,7 +1076,7 @@ pub fn read_record_size(payload: &[u8]) -> Result { offset += bytes_read; record_size += header_size; - while offset < header_size && offset < payload.len() { + while offset < header_size { let (serial_type, bytes_read) = read_varint(&payload[offset..])?; offset += bytes_read; diff --git a/core/vdbe/sorter.rs b/core/vdbe/sorter.rs index 9cd585d40..0b75d6d06 100644 --- a/core/vdbe/sorter.rs +++ b/core/vdbe/sorter.rs @@ -357,7 +357,6 @@ impl SortedChunk { let drop_fn = Rc::new(|_buffer: BufferData| {}); let read_buffer = Buffer::allocate(read_buffer_size, drop_fn); - #[allow(clippy::arc_with_non_send_sync)] let read_buffer_ref = Arc::new(RefCell::new(read_buffer)); let chunk_io_state_copy = self.io_state.clone(); @@ -410,7 +409,6 @@ impl SortedChunk { buf_pos += payload.len(); } - #[allow(clippy::arc_with_non_send_sync)] let buffer_ref = Arc::new(RefCell::new(buffer)); let buffer_ref_copy = buffer_ref.clone();