diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-18 17:32:41 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-18 17:32:41 +0100 |
commit | 1c90ee16661006c8cbfd628a93608566a9bc6b76 (patch) | |
tree | a6ac58c5013df6b7e663f533c8ae8f0cbf4b112e /lib/src/stream.rs | |
parent | aa5c1f79dcdfae35f10835ea43bac6f451d7149d (diff) | |
parent | 19ea5662c661d5a7ab3eeeafa1f7a7846ea4f762 (diff) |
Merge branch 'gui-timeline'
Diffstat (limited to 'lib/src/stream.rs')
-rw-r--r-- | lib/src/stream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/src/stream.rs b/lib/src/stream.rs index 01548e6..2dd2781 100644 --- a/lib/src/stream.rs +++ b/lib/src/stream.rs @@ -15,7 +15,7 @@ impl NodeStreamBuilder { } } - pub fn into_stream<'a>(self, client: &'a Client) -> impl futures::stream::Stream<Item = Result<Node>> + 'a { + pub fn into_stream(self, client: Client) -> impl futures::stream::Stream<Item = Result<Node>> { futures::stream::unfold((client, self.state), move |(client, mut state)| { async move { if let Some(node_cid) = state.pop() { |