Skip to content

Commit

Permalink
fix new clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
rkusa committed Nov 21, 2023
1 parent e91b906 commit b6bb7b1
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/rpc/srs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,19 +299,15 @@ async fn transmit(
) -> Result<(), Box<dyn error::Error + Send + Sync + 'static>> {
let mut transmission = Box::pin(transmit_frames(frames, tx));

loop {
tokio::select! {
result = &mut transmission => {
return result;
}
tokio::select! {
result = &mut transmission => {
result
}

_ = &mut shutdown_signal => {
break;
}
_ = &mut shutdown_signal => {
Ok(())
}
}

Ok(())
}

async fn transmit_frames(
Expand Down

0 comments on commit b6bb7b1

Please sign in to comment.