Fuse iterator supplied to `SumTree::from_iter` (cherry-pick #10571) (#10572)
gcp-cherry-pick-bot[bot]
,
Antonio Scandurra
, and
Kyle
created
Cherry-picked Fuse iterator supplied to `SumTree::from_iter` (#10571)
This fixes an issue that could cause `from_iter` to never finish if the
underlying iterator restarted after returning `None` for the first time.
We only saw this in development but I wanna cherry-pick it to stable and
preview, just in case.
Release Notes:
- N/A
Co-authored-by: Kyle <kylek@zed.dev>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Kyle <kylek@zed.dev>