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.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/frontier.rs') diff --git a/src/frontier.rs b/src/frontier.rs index 7143cb7..c7b7ca5 100644 --- a/src/frontier.rs +++ b/src/frontier.rs @@ -23,6 +23,9 @@ pub trait Frontier { /// The number of pixels currently on the frontier. fn len(&self) -> usize; + /// Whether the frontier is empty. + fn is_empty(&self) -> bool; + /// Place the given color on the frontier, and return its position. fn place(&mut self, rgb8: Rgb8) -> Option<(u32, u32)>; } -- cgit v1.2.3