Skip to content

Commit

Permalink
Workaround clippy bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
surban committed Mar 26, 2024
1 parent 02f5051 commit 49942e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions aggligator-util/src/bin/agg-tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?,
Expand Down

0 comments on commit 49942e6

Please sign in to comment.