fix another lint
This commit is contained in:
@@ -106,6 +106,7 @@ pub trait StorageTxn {
|
|||||||
fn clear_working_set(&mut self) -> Result<()>;
|
fn clear_working_set(&mut self) -> Result<()>;
|
||||||
|
|
||||||
/// Check whether this storage is entirely empty
|
/// Check whether this storage is entirely empty
|
||||||
|
#[allow(clippy::wrong_self_convention)] // mut is required here for storage access
|
||||||
fn is_empty(&mut self) -> Result<bool> {
|
fn is_empty(&mut self) -> Result<bool> {
|
||||||
let mut empty = true;
|
let mut empty = true;
|
||||||
empty = empty && self.all_tasks()?.is_empty();
|
empty = empty && self.all_tasks()?.is_empty();
|
||||||
|
|||||||
Reference in New Issue
Block a user