grid: find_all return an iterator that is Clone

This commit is contained in:
ktims committed 2026-12-03 11:13:34 -07:00
1 parent f896774877
commit 6cbe910152
1 file changed
+1 -1
+1 -1
View File
@@ -422,7 +422,7 @@ impl<T: Clone + Eq + PartialEq + Debug> Grid<T> {
)
}
/// Get all of the coordinates having value `needle`
pub fn find_all<'a>(&'a self, needle: &'a T) -> impl DoubleEndedIterator<Item = Coord2d> + 'a {
pub fn find_all<'a>(&'a self, needle: &'a T) -> impl DoubleEndedIterator<Item = Coord2d> + Clone + 'a {
self.data
.iter()
.enumerate()