Skip to content

Commit

Permalink
Fix linting and cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgi-o committed Nov 26, 2023
1 parent 29f6954 commit 2971387
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/async-tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ async fn test_cancel_future() {
let result = timeout_fut.await;

match result {
Ok(msg) => {/* do something with msg */},
Err(_) => {return;} // timed out
Ok(_msg) => { /* do something with msg */ }
Err(_) => {
// timed out
return;
}
};
}
}
Expand All @@ -111,5 +114,5 @@ async fn test_cancel_future() {
reader.get_mut().get_mut().next_message_ready = true;

// try to read a message again
let message = read_message(&mut reader).await;
let _ = read_message(&mut reader).await;
}

0 comments on commit 2971387

Please sign in to comment.