Skip to content

Commit

Permalink
chore: remove clippy allow for false positive
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Oct 6, 2023
1 parent 315f58f commit 97343df
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/fd/socket/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ impl<T> Socket<T> {
result
}

// TODO: Remove allow once fixed:
// https://github.com/rust-lang/rust-clippy/issues/11380
#[allow(clippy::needless_pass_by_ref_mut)]
async fn async_read(&self, buffer: &mut [u8]) -> Result<isize, i32> {
future::poll_fn(|cx| {
self.with(|socket| match socket.state() {
Expand Down

0 comments on commit 97343df

Please sign in to comment.