Skip to content

Commit

Permalink
Simplify implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tyilo committed Sep 20, 2024
1 parent 224562a commit 4093c89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/concurrent_stream/from_concurrent_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ where

async fn progress(self: Pin<&mut Self>) -> super::ConsumerState {
let mut this = self.project();
let Ok(items) = this.output else {
return ConsumerState::Break;
};

while let Some(item) = this.group.next().await {
match item {
Ok(item) => {
let Ok(items) = this.output else {
panic!("progress called after returning ConsumerState::Break");
};
items.push(item);
}
Err(e) => {
Expand Down

0 comments on commit 4093c89

Please sign in to comment.