Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rennzie committed Nov 10, 2023
1 parent e8ccfba commit 2681734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grid/ntv2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2681734

Please sign in to comment.