From 2681734a9b11c53c777e6ef3a5c5349bad887e47 Mon Sep 17 00:00:00 2001 From: Sean Rennie Date: Fri, 10 Nov 2023 15:56:58 +0000 Subject: [PATCH] make clippy happy --- src/grid/ntv2/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grid/ntv2/mod.rs b/src/grid/ntv2/mod.rs index 66c30cc..e1616dd 100644 --- a/src/grid/ntv2/mod.rs +++ b/src/grid/ntv2/mod.rs @@ -105,7 +105,7 @@ impl Grid for Ntv2Grid { /// Checks if a `Coord4D` is within the grid limits +- `margin` grid units fn contains(&self, position: &Coor4D, margin: f64) -> bool { - if let Some(_) = self.find_grid(position, margin) { + if self.find_grid(position, margin).is_some() { return true; }