mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-02 14:54:23 +01:00
fix clippy
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user