From bf2bfbe978ca0a79adf4ef4aae30b1fe8b0d85c5 Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Tue, 22 Jul 2025 16:58:05 +0400 Subject: [PATCH] fix clippy --- core/storage/sqlite3_ondisk.rs | 2 +- core/storage/wal.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/storage/sqlite3_ondisk.rs b/core/storage/sqlite3_ondisk.rs index bb43986f7..d0d5249ca 100644 --- a/core/storage/sqlite3_ondisk.rs +++ b/core/storage/sqlite3_ondisk.rs @@ -1576,7 +1576,7 @@ pub fn prepare_wal_frame( let drop_fn = Rc::new(|_buf| {}); let mut buffer = Buffer::allocate(page_size as usize + WAL_FRAME_HEADER_SIZE, drop_fn); let frame = buffer.as_mut_slice(); - frame[WAL_FRAME_HEADER_SIZE..].copy_from_slice(&page); + frame[WAL_FRAME_HEADER_SIZE..].copy_from_slice(page); frame[0..4].copy_from_slice(&page_number.to_be_bytes()); frame[4..8].copy_from_slice(&db_size.to_be_bytes()); diff --git a/core/storage/wal.rs b/core/storage/wal.rs index b0ff80e5f..adcbfee00 100644 --- a/core/storage/wal.rs +++ b/core/storage/wal.rs @@ -706,8 +706,7 @@ impl Wal for WalFile { self.io.wait_for_completion(c)?; return if conflict.get() { Err(LimboError::InvalidArgument(format!( - "frame content differs from the WAL: frame_id={}", - frame_id + "frame content differs from the WAL: frame_id={frame_id}" ))) } else { Ok(())