Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Nov 15, 2022
1 parent 038cbaf commit 9037628
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions src/stream/zip/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,9 @@ where
if !readiness.any_ready() {
// Nothing is ready yet
return Poll::Pending;
} else if this.state[index].is_done() {
// We already have data stored for this stream
continue;
} else if !readiness.clear_ready(index) {
// This waker isn't ready yet
} else if this.state[index].is_done() || !readiness.clear_ready(index) {
// We already have data stored for this stream,
// Or this waker isn't ready yet
continue;
}

Expand Down
8 changes: 3 additions & 5 deletions src/stream/zip/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ where
if !readiness.any_ready() {
// Nothing is ready yet
return Poll::Pending;
} else if this.state[index].is_done() {
// We already have data stored for this stream
continue;
} else if !readiness.clear_ready(index) {
// This waker isn't ready yet
} else if this.state[index].is_done() || !readiness.clear_ready(index) {
// We already have data stored for this stream,
// Or this waker isn't ready yet
continue;
}

Expand Down

0 comments on commit 9037628

Please sign in to comment.