Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
robertream committed Nov 19, 2021
1 parent 9d99bf8 commit d9feafb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions srt-tokio/tests/high_bandwidth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ fn stream_exact(duration: Duration) -> impl Stream<Item = Bytes> {
})
}

#[allow(clippy::large_enum_variant)]
enum Select {
Message((Instant, Bytes)),
Statistics(SocketStatistics),
}

#[tokio::test]
async fn high_bandwidth() -> Result<(), Error> {
let _ = pretty_env_logger::try_init();
Expand Down Expand Up @@ -59,11 +65,6 @@ async fn high_bandwidth() -> Result<(), Error> {
let mut bytes_received = 0;
let window_size = Duration::from_secs(1);

enum Select {
Message((Instant, Bytes)),
Statistics(SocketStatistics),
};

loop {
use Select::*;
let next = futures::select!(
Expand Down

0 comments on commit d9feafb

Please sign in to comment.