fix another lint

This commit is contained in:
Dustin J. Mitchell 2022-02-09 03:20:17 +00:00
parent 5cf3ce4bc8
commit ae5afff4f7

View file

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