Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Nov 13, 2023
1 parent 79dd3b6 commit c8b8f7b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions transports/quic/tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,15 +653,13 @@ async fn answer_inbound_streams<P: Provider + Spawn, const BUFFER_SIZE: usize>(
mut connection: StreamMuxerBox,
) {
loop {
let mut inbound_stream = match future::poll_fn(|cx| {
let Ok(mut inbound_stream) = future::poll_fn(|cx| {
let _ = connection.poll_unpin(cx)?;

connection.poll_inbound_unpin(cx)
})
.await
{
Ok(s) => s,
Err(_) => return,
else {
return;
};

P::spawn(async move {
Expand Down

0 comments on commit c8b8f7b

Please sign in to comment.