From 49942e6c61cd29136fff4299521a643d97d1ffb4 Mon Sep 17 00:00:00 2001 From: Sebastian Urban Date: Tue, 26 Mar 2024 10:51:10 +0100 Subject: [PATCH] Workaround clippy bug. --- .github/workflows/rust-clippy.yml | 2 +- aggligator-util/src/bin/agg-tunnel.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index db0e3ea..0eedbaa 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -47,7 +47,7 @@ jobs: - name: Run rust-clippy run: cargo clippy - --all-features + --all-features --all-targets --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt continue-on-error: true diff --git a/aggligator-util/src/bin/agg-tunnel.rs b/aggligator-util/src/bin/agg-tunnel.rs index 552c5fc..b5a1555 100644 --- a/aggligator-util/src/bin/agg-tunnel.rs +++ b/aggligator-util/src/bin/agg-tunnel.rs @@ -621,6 +621,7 @@ async fn forward(mut read: impl AsyncRead + Unpin, mut write: impl AsyncWrite + loop { let mut buf = vec![0; 65_536]; + #[allow(clippy::unused_io_amount)] // workaround for clippy bug, IO amount is handled let n = match FLUSH_DELAY { Some(delay) => select! { res = read.read(&mut buf) => res?,