From adaafdd7043507cbceae65e78c38954e47103b5c Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 11 May 2020 11:33:45 -0400 Subject: Fix some clippy lints --- src/frontier/mean.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/frontier/mean.rs') diff --git a/src/frontier/mean.rs b/src/frontier/mean.rs index 889c5ba..6a32b97 100644 --- a/src/frontier/mean.rs +++ b/src/frontier/mean.rs @@ -129,6 +129,10 @@ impl Frontier for MeanFrontier { self.len - self.deleted } + fn is_empty(&self) -> bool { + self.len() == 0 + } + fn place(&mut self, rgb8: Rgb8) -> Option<(u32, u32)> { let color = C::from(rgb8); let (x, y) = self.forest.nearest(&color).map(|n| n.item.pos)?; -- cgit v1.2.3