Skip to content

Commit

Permalink
heed clippy's advice
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 8, 2024
1 parent baf662f commit 4f2ab14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capnp-rpc/src/queued.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,12 @@ impl ClientHook for Client {
Promise::from_future(async move {
match futures::future::select(p1, promise).await {
futures::future::Either::Left((Ok(()), promise)) => promise.await,
futures::future::Either::Left((Err(e), _)) => return Err(e),
futures::future::Either::Left((Err(e), _)) => Err(e),
futures::future::Either::Right((r, _)) => {
// Don't bother waiting for `promise_to_drive` to resolve.
// If we're here because set_pipeline() was called, then
// `promise_to_drive` might in fact never resolve.
return r;
r
}
}
})
Expand Down

0 comments on commit 4f2ab14

Please sign in to comment.