Fix clippy complains

This commit is contained in:
Diego Reis
2025-06-18 13:10:09 -03:00
parent a5d71a65be
commit a1b7b3c6f6
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ use std::{
num::NonZero,
ops::Deref,
rc::Rc,
sync::{atomic::Ordering, Arc},
sync::Arc,
};
#[cfg(feature = "fs")]
use storage::database::DatabaseFile;

View File

@@ -971,7 +971,7 @@ impl Pager {
#[allow(clippy::readonly_write_lock)]
pub fn allocate_page(&self) -> Result<PageRef> {
let old_db_size = header_accessor::get_database_size(self)?;
#[allow(clippy::unused_mut)]
#[allow(unused_mut)]
let mut new_db_size = old_db_size + 1;
self.is_empty.store(false, Ordering::SeqCst);