Skip to content

Commit

Permalink
Use a slice instead of creating a new vec in trace_band_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mthh committed Jan 15, 2024
1 parent e6987ef commit f37ac6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polygons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ macro_rules! check_out_of_grid {

pub(crate) fn trace_band_paths(
data: &BorrowedGrid<f64>,
cell_grid: &mut Vec<Vec<Option<Cell>>>,
cell_grid: &mut [Vec<Option<Cell>>],
opt: &Settings,
) -> Result<Vec<Vec<Point<f64>>>> {
let mut polygons: Vec<Vec<Point<f64>>> = Vec::new();
Expand Down

0 comments on commit f37ac6b

Please sign in to comment.