ThinGridData: avoid clones

This commit is contained in:
2025-03-24 17:04:21 -04:00
parent 56f3eae156
commit 70354a4111
2 changed files with 2 additions and 3 deletions

View File

@@ -21,8 +21,7 @@ impl ThinGridData {
}
}
#[allow(dead_code)]
pub fn new_from_grid_vec(in_grids: Vec<Grid>) -> Vec<Self> {
pub fn new_from_grid_vec(in_grids: &[Grid]) -> Vec<Self> {
in_grids
.iter()
.map(|grid| Self::new_from_grid(grid))