fix clippy

This commit is contained in:
Nikita Sivukhin
2025-07-22 16:58:05 +04:00
parent 16763e1500
commit bf2bfbe978
2 changed files with 2 additions and 3 deletions

View File

@@ -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());

View File

@@ -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(())