From 53c6bf003f3e2d175ae788dd4e9fe7faa8e1fc00 Mon Sep 17 00:00:00 2001 From: dragonn Date: Thu, 20 Jan 2022 19:18:00 +0100 Subject: [PATCH] suppres clippy len_without_is_empty for LayerMap --- src/desktop/layer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/desktop/layer.rs b/src/desktop/layer.rs index b6e2c06..fe63ed9 100644 --- a/src/desktop/layer.rs +++ b/src/desktop/layer.rs @@ -271,6 +271,7 @@ impl LayerMap { } /// 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 { self.layers.len() }