Skip to content

Commit

Permalink
Merge pull request #944 from mkroening/clippy-needless_pass_by_ref_mut
Browse files Browse the repository at this point in the history
chore: remove clippy allow for false positive
  • Loading branch information
mkroening authored Oct 6, 2023
2 parents 315f58f + 97343df commit cc272ed
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 cc272ed

Please sign in to comment.