ThinGridData: avoid clones
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user