mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-28 21:44:21 +01:00
convert must_use compile warnings to unused_variables to track locations where we need to refactor in the future
This commit is contained in:
@@ -702,7 +702,7 @@ impl turso_core::DatabaseStorage for DatabaseFile {
|
||||
return Err(turso_core::LimboError::NotADB);
|
||||
}
|
||||
let pos = (page_idx - 1) * size;
|
||||
self.file.pread(pos, c.into())
|
||||
self.file.pread(pos, c)
|
||||
}
|
||||
|
||||
fn write_page(
|
||||
@@ -713,11 +713,11 @@ impl turso_core::DatabaseStorage for DatabaseFile {
|
||||
) -> turso_core::Result<turso_core::Completion> {
|
||||
let size = buffer.borrow().len();
|
||||
let pos = (page_idx - 1) * size;
|
||||
self.file.pwrite(pos, buffer, c.into())
|
||||
self.file.pwrite(pos, buffer, c)
|
||||
}
|
||||
|
||||
fn sync(&self, c: turso_core::Completion) -> turso_core::Result<turso_core::Completion> {
|
||||
self.file.sync(c.into())
|
||||
self.file.sync(c)
|
||||
}
|
||||
|
||||
fn size(&self) -> turso_core::Result<u64> {
|
||||
|
||||
Reference in New Issue
Block a user