suppres clippy len_without_is_empty for LayerMap
This commit is contained in:
parent
957f1c522b
commit
53c6bf003f
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue