Skip to content

Commit 8813346

Browse files
authored
Merge pull request #104 from jwodder/tweak-size-hint
Correct a couple `size_hint()` methods
2 parents b2508a5 + 4ff63b8 commit 8813346

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adventutil/src/grid/iter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ impl Iterator for NeighborCoords {
384384
}
385385

386386
fn size_hint(&self) -> (usize, Option<usize>) {
387-
self.inner.size_hint()
387+
(0, self.inner.size_hint().1)
388388
}
389389
}
390390

@@ -420,7 +420,7 @@ impl Iterator for AdjacentCoords {
420420
}
421421

422422
fn size_hint(&self) -> (usize, Option<usize>) {
423-
self.inner.size_hint()
423+
(0, self.inner.size_hint().1)
424424
}
425425
}
426426

0 commit comments

Comments
 (0)