suppres clippy len_without_is_empty for LayerMap

This commit is contained in:
dragonn 2022-01-20 19:18:00 +01:00
parent 957f1c522b
commit 53c6bf003f
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ impl LayerMap {
} }
/// Returns layers count /// Returns layers count
#[allow(clippy::len_without_is_empty)] //we don't need is_empty on that struct for now, mark as allow
pub fn len(&self) -> usize { pub fn len(&self) -> usize {
self.layers.len() self.layers.len()
} }