Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Mar 15, 2023
1 parent 4f5548b commit e956b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geo/src/algorithm/simplify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ where
.map(|rdpindex| rdpindex.coord)
.collect();
debug_assert_eq!(simplified_coords.len(), simplified_len);
return simplified_coords;
simplified_coords
}

// Wrapper for the RDP algorithm, returning simplified point indices
Expand All @@ -64,7 +64,7 @@ where
.map(|rdpindex| rdpindex.index)
.collect::<Vec<usize>>();
debug_assert_eq!(simplified_len, simplified_coords.len());
return simplified_coords;
simplified_coords
}

// Ramer–Douglas-Peucker line simplification algorithm
Expand Down

0 comments on commit e956b96

Please sign in to comment.