# Fuse iterator supplied to \`SumTree::from_iter\` \(\#10571\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/57a736d74abcffdf5ef6e3945f555fb14b565b3d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 57a736d74abcffdf5ef6e3945f555fb14b565b3d

Requested commit: 57a736d74abcffdf5ef6e3945f555fb14b565b3d

Commit: 57a736d74abcffdf5ef6e3945f555fb14b565b3d

Tree: 251877e370bbccfe4d49a8a5e948b042e77100a9

Author: Antonio Scandurra

Committer: GitHub

## Message

```
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>
```

## Parents

- [015e2ecd1956d7247f66f2b1ee23c01a8a4a482f](https://git.cafe/gitcafe/zed/commit/015e2ecd1956d7247f66f2b1ee23c01a8a4a482f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/57a736d74abcffdf5ef6e3945f555fb14b565b3d?format=markdown)
