From d9feafb299eac87d5cb2fbdf5d64ebac056d3e7f Mon Sep 17 00:00:00 2001 From: Robert Ream Date: Thu, 18 Nov 2021 20:27:39 -0800 Subject: [PATCH] clippy --- srt-tokio/tests/high_bandwidth.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/srt-tokio/tests/high_bandwidth.rs b/srt-tokio/tests/high_bandwidth.rs index 03ce8e69..ee9c33cf 100644 --- a/srt-tokio/tests/high_bandwidth.rs +++ b/srt-tokio/tests/high_bandwidth.rs @@ -21,6 +21,12 @@ fn stream_exact(duration: Duration) -> impl Stream { }) } +#[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(); @@ -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!(